From f3ac2643d9588937d938db78591925c54e1bd960 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 15 Oct 2013 17:43:57 +0200 Subject: [PATCH] [FIX] mail: /mail/download_attachment: content_disposition() does not take request as parameter anymore. bzr revid: chs@openerp.com-20131015154357-4fnj8b6fy5sbvpa7 --- addons/mail/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/controllers/main.py b/addons/mail/controllers/main.py index 054e6eadd1e..c5ef8bac92d 100644 --- a/addons/mail/controllers/main.py +++ b/addons/mail/controllers/main.py @@ -21,7 +21,7 @@ class MailController(http.Controller): if filecontent and filename: return req.make_response(filecontent, headers=[('Content-Type', 'application/octet-stream'), - ('Content-Disposition', content_disposition(filename, req))]) + ('Content-Disposition', content_disposition(filename))]) return req.not_found() @http.route('/mail/receive', type='json', auth='none')