Skip to content

Commit

Permalink
Important fix to open_url. HTTP Request object was being created insi…
Browse files Browse the repository at this point in the history
…de if headers is None block - now corrected to create regardless.

git-svn-id: http://proj.badc.rl.ac.uk/svn/ndg-security/trunk/ndg_httpsclient@8191 051b1e3e-aa0c-0410-b6c2-bfbade6052be
  • Loading branch information
pjkersha committed Oct 19, 2012
1 parent c5708a4 commit ee7d8ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ndg/httpsclient/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ def open_url(url, config, data=None, handlers=None):
headers = config.headers
if headers is None:
headers = {}
request = urllib2.Request(url, data, headers)

request = urllib2.Request(url, data, headers)

# Open the URL and check the response.
return_code = 0
Expand Down

0 comments on commit ee7d8ca

Please sign in to comment.