pengyuthon wechat

This commit is contained in:
李鹏宇
2024-11-26 22:43:53 +08:00
parent fa10909172
commit 8e921a1927
+1 -1
View File
@@ -59,7 +59,7 @@ class preview(http.Controller):
attach = ir_attach.browse(id)
headers = [
('Content-Type', attach.mimetype),
('Content-Disposition', f'inline; filename={attach.name}'),
('Content-Disposition', f'inline; filename={quote(attach.name)}'),
('Content-Length', len(attach.raw)),
('Connection', 'close'),
]