diff --git a/sanic/static.py b/sanic/static.py index f1727441..36cb47db 100644 --- a/sanic/static.py +++ b/sanic/static.py @@ -107,7 +107,8 @@ def register(app, uri, file_or_directory, pattern, if not stats: stats = await stat(file_path) if stats.st_size >= threshold: - return await file_stream(file_path, headers=headers, _range=_range) + return await file_stream(file_path, headers=headers, + _range=_range) return await file(file_path, headers=headers, _range=_range) except ContentRangeError: raise