pengyuthon wechat
This commit is contained in:
@@ -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'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user