Merge pull request #1416 from chenjr0719/add_tests_for_static

Add tests for static and update document
This commit is contained in:
7
2018-11-21 23:01:37 +08:00
committed by GitHub
3 changed files with 137 additions and 7 deletions

View File

@@ -114,7 +114,7 @@ def register(
return HTTPResponse(headers=headers)
else:
if stream_large_files:
if isinstance(stream_large_files, int):
if type(stream_large_files) == int:
threshold = stream_large_files
else:
threshold = 1024 * 1024