[common] do not coerce headers into a dict

This commit is contained in:
Mort Yao 2018-07-01 13:23:48 +02:00
parent 4a3f1b5bd2
commit 503ff846f7
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -505,7 +505,7 @@ def get_head(url, headers={}, get_method='HEAD'):
req = request.Request(url)
req.get_method = lambda: get_method
res = urlopen_with_retry(req)
return dict(res.headers)
return res.headers
def url_info(url, faker=False, headers={}):