mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 03:17:44 +03:00
[common] do not coerce headers into a dict
This commit is contained in:
parent
4a3f1b5bd2
commit
503ff846f7
@ -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={}):
|
||||
|
Loading…
x
Reference in New Issue
Block a user