From 84e5b77a5ca302fc59699f4bcbe165eba9d043c9 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 4 Sep 2025 11:53:39 +0800 Subject: [PATCH] rollback orjson --- app/factory.py | 4 +--- requirements.in | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/factory.py b/app/factory.py index 8dd8cf45..c4c43c1c 100644 --- a/app/factory.py +++ b/app/factory.py @@ -1,6 +1,5 @@ from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware -from fastapi.responses import ORJSONResponse from app.core.config import settings from app.startup.lifecycle import lifespan @@ -13,8 +12,7 @@ def create_app() -> FastAPI: _app = FastAPI( title=settings.PROJECT_NAME, openapi_url=f"{settings.API_V1_STR}/openapi.json", - lifespan=lifespan, - default_response_class=ORJSONResponse + lifespan=lifespan ) # 配置 CORS 中间件 diff --git a/requirements.in b/requirements.in index 3691844f..d2775425 100644 --- a/requirements.in +++ b/requirements.in @@ -76,5 +76,4 @@ setuptools~=78.1.0 pympler~=1.1 smbprotocol~=1.15.0 setproctitle~=1.3.6 -httpx[socks]~=0.28.1 -orjson~=3.11.3 \ No newline at end of file +httpx[socks]~=0.28.1 \ No newline at end of file