From 1a0cd1ee6b793e2dd0a0a12c5abc9d52449a104c Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Thu, 7 Feb 2013 18:28:56 +0100 Subject: [PATCH] Print HTTP client headers. --- dosagelib/util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dosagelib/util.py b/dosagelib/util.py index 529e25733..28f7859a8 100644 --- a/dosagelib/util.py +++ b/dosagelib/util.py @@ -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 = {