mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-29 10:40:59 +00:00
BunnyCDN doesn't return content-type (#251)
This commit is contained in:
parent
aca77314d1
commit
d88db5efbf
1 changed files with 3 additions and 1 deletions
|
@ -63,6 +63,8 @@ async def get_remote_file(
|
|||
pass
|
||||
if allow_download:
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue