Print HTTP client headers.
This commit is contained in:
parent
e16b86d768
commit
1a0cd1ee6b
1 changed files with 1 additions and 0 deletions
|
@ -241,6 +241,7 @@ def urlopen(url, referrer=None, max_content_bytes=None,
|
|||
headers = {'User-Agent': UserAgent}
|
||||
if referrer:
|
||||
headers['Referer'] = referrer
|
||||
out.debug('Sending headers %s' % headers, level=3)
|
||||
if session is None:
|
||||
session = requests
|
||||
kwargs = {
|
||||
|
|
Loading…
Reference in a new issue