kopia lustrzana https://github.com/jointakahe/takahe
BunnyCDN doesn't return content-type (#251)
rodzic
aca77314d1
commit
d88db5efbf
|
@ -63,6 +63,8 @@ async def get_remote_file(
|
||||||
pass
|
pass
|
||||||
if allow_download:
|
if allow_download:
|
||||||
file = ContentFile(await stream.aread(), name=url)
|
file = ContentFile(await stream.aread(), name=url)
|
||||||
return file, stream.headers["content-type"]
|
return file, stream.headers.get(
|
||||||
|
"content-type", "application/octet-stream"
|
||||||
|
)
|
||||||
|
|
||||||
return None, None
|
return None, None
|
||||||
|
|
Ładowanie…
Reference in New Issue