File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ def can_access_path(fsdir):
225
225
content_len = tmpfile .tell ()
226
226
tmpfile .seek (0 )
227
227
chunk_size = 8192
228
- response = StreamingHttpResponse (FileWrapper (tmpfile , chunk_size ), content_type = "application/octet-stream" )
228
+ response = StreamingHttpResponse ([ * FileWrapper (tmpfile , chunk_size )] , content_type = "application/octet-stream" )
229
229
response ["Content-Length" ] = content_len
230
230
response ["Content-Disposition" ] = f"attachment; filename={ filebase_escaped } "
231
231
return response
@@ -294,7 +294,7 @@ def can_access_path(fsdir):
294
294
content_len = tmpfile .tell ()
295
295
tmpfile .seek (0 )
296
296
chunk_size = 8192
297
- response = StreamingHttpResponse (FileWrapper (tmpfile , chunk_size ), content_type = "application/octet-stream" )
297
+ response = StreamingHttpResponse ([ * FileWrapper (tmpfile , chunk_size )] , content_type = "application/octet-stream" )
298
298
response ["Content-Length" ] = content_len
299
299
if not dirbase_escaped :
300
300
dirbase_escaped = "files"
You can’t perform that action at this time.
0 commit comments