Fix untyped/unknown mime file download

This commit is contained in:
BordedDev 2025-07-02 01:03:09 +02:00
parent f77ccd47aa
commit f3ef9d4052

View File

@ -114,7 +114,7 @@ class ChannelAttachmentView(BaseView):
response.headers["Content-Disposition"] = (
f'attachment; filename="{channel_attachment["name"]}"'
)
response.headers["Content-Type"] = original_format
response.headers["Content-Type"] = original_format or "application/octet-stream"
return response
async def post(self):