This commit is contained in:
Maxim Devaev 2024-03-08 00:51:55 +02:00
parent 6a76ce869a
commit f34b89fb29

View File

@ -194,7 +194,7 @@ async def start_streaming(
response = StreamResponse(status=200, reason="OK")
response.content_type = content_type
if content_length >= 0:
if content_length >= 0: # pylint: disable=consider-using-min-builtin
response.content_length = content_length
if file_name:
file_name = urllib.parse.quote(file_name, safe="")