We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69e01a5 commit 24a7e29Copy full SHA for 24a7e29
src/main.py
@@ -4,6 +4,7 @@
4
5
from fastapi import FastAPI, Header
6
from fastapi.middleware.cors import CORSMiddleware
7
+from fastapi.middleware.gzip import GZipMiddleware
8
from fastapi.responses import ORJSONResponse
9
from flag_engine.engine import (
10
get_environment_feature_state,
@@ -133,4 +134,5 @@ async def refresh_cache():
133
134
allow_methods=["*"],
135
allow_headers=["*"],
136
)
137
+app.add_middleware(GZipMiddleware, minimum_size=1000)
138
app.include_router(sse_router)
0 commit comments