Commit af9726e1 authored by Vincent Ardisson's avatar Vincent Ardisson Committed by Vincent A

weboob/browser/browsers: force "reason" unicode conversion for HAR dump

parent d966ded2
......@@ -53,6 +53,7 @@ from weboob.exceptions import (
from weboob.tools.log import getLogger
from weboob.tools.compat import basestring, unicode, urlparse, urljoin, urlencode, parse_qsl
from weboob.tools.misc import to_unicode
from weboob.tools.json import json
from weboob.tools.value import Value
from weboob import __version__
......@@ -265,7 +266,7 @@ class Browser(object):
},
'response': {
'status': response.status_code,
'statusText': response.reason,
'statusText': to_unicode(response.reason),
'httpVersion': 'HTTP/%.1f' % (response.raw.version / 10.),
'headers': [
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment