[FIX] mass_mailing: avoid using werkzeug API only present in 0.9+

bzr revid: odo@openerp.com-20140424131451-rhtokro13piol7ji
This commit is contained in:
Olivier Dony 2014-04-24 15:14:51 +02:00
parent 3ad6d69b21
commit 96b9d8b9d5
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class MassMailController(http.Controller):
mail_mail_stats.set_opened(request.cr, SUPERUSER_ID, mail_mail_ids=[mail_id])
response = werkzeug.wrappers.Response()
response.mimetype = 'image/gif'
response.set_data('R0lGODlhAQABAIAAANvf7wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='.decode('base64'))
response.data = 'R0lGODlhAQABAIAAANvf7wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='.decode('base64')
return response
@http.route(['/mail/mailing/<int:mailing_id>/unsubscribe'], type='http', auth='none')