Compare commits
2 Commits
3a4c46cc0d
...
3e006e0bec
| Author | SHA1 | Date | |
|---|---|---|---|
| 3e006e0bec | |||
|
|
f3ef9d4052 |
@ -114,7 +114,7 @@ class ChannelAttachmentView(BaseView):
|
|||||||
response.headers["Content-Disposition"] = (
|
response.headers["Content-Disposition"] = (
|
||||||
f'attachment; filename="{channel_attachment["name"]}"'
|
f'attachment; filename="{channel_attachment["name"]}"'
|
||||||
)
|
)
|
||||||
response.headers["Content-Type"] = original_format
|
response.headers["Content-Type"] = original_format or "application/octet-stream"
|
||||||
return response
|
return response
|
||||||
|
|
||||||
async def post(self):
|
async def post(self):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user