Add tests for static

This commit is contained in:
jacob
2018-11-20 12:28:00 +08:00
parent 096c44b910
commit f2d528e52a
2 changed files with 98 additions and 6 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