]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Change default chunk size from 4Kb to 64Kb (#1345)
authorMarcelo Trylesinski <marcelotryle@gmail.com>
Sun, 5 Dec 2021 14:03:13 +0000 (15:03 +0100)
committerGitHub <noreply@github.com>
Sun, 5 Dec 2021 14:03:13 +0000 (15:03 +0100)
* Change default chunk size from 4Kb to 64Kb

* Update starlette/responses.py

starlette/responses.py

index 9dbe03beb56fde2bbd28e6c53623b298876ac24f..1f9c43a21b388ce80b0d2a02d70a754128d6070b 100644 (file)
@@ -248,7 +248,7 @@ class StreamingResponse(Response):
 
 
 class FileResponse(Response):
-    chunk_size = 4096
+    chunk_size = 64 * 1024
 
     def __init__(
         self,