Skip to content

Commit 2366a24

Browse files
committed
disable pyloot gzip
1 parent bef777e commit 2366a24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/profiling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
def add_profiler(app: FastAPI, mount: str = "/_pyloot"):
1212
try:
1313

14-
from pyloot import PyLoot
14+
from pyloot import PyLoot, PyLootServer
1515

16-
pyloot = PyLoot()
16+
pyloot = PyLoot(server=PyLootServer(disable_response_gzip=True))
1717

1818
def pyloot_wrapper(wsgi_environ, start_response):
1919
pyloot_environ = wsgi_environ.copy()

0 commit comments

Comments
 (0)