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 #895
  • Loading branch information
tpatel committed Apr 30, 2024
1 parent 4ec901b commit 1da265b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions backend/chainlit/server.py
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 1da265b

Please sign in to comment.