Skip to content

Commit

Permalink
fix: disable gzip middleware to prevent a compression issue on safari…
Browse files Browse the repository at this point in the history
… (#952)

fixes Chainlit/chainlit#895
  • Loading branch information
Oleh929216 committed Apr 30, 2024
1 parent bb25565 commit d7c6e4c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions backend/chainlit/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
UploadFile,
status,
)
from fastapi.middleware.gzip import GZipMiddleware
from fastapi.responses import FileResponse, HTMLResponse, JSONResponse, RedirectResponse
from fastapi.security import OAuth2PasswordRequestForm
from fastapi.staticfiles import StaticFiles
Expand Down Expand Up @@ -188,8 +187,6 @@ def get_build_dir(local_target: str, packaged_target: str):
allow_headers=["*"],
)

app.add_middleware(GZipMiddleware)

socket = SocketManager(
app,
cors_allowed_origins=[],
Expand Down

0 comments on commit d7c6e4c

Please sign in to comment.