Permalink
Browse files

fix issue #16

git-svn-id: http://python-ntlm.googlecode.com/svn/trunk/python26/ntlm@78 fb9420a8-c688-11dd-8ca8-e3ff79f713b6
  • Loading branch information...
1 parent 91ec1da commit 9ae7f33152baba19a19955d54cdf0404f45500d8 dholth committed Jan 13, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 HTTPNtlmAuthHandler.py
View
@@ -81,7 +81,10 @@ def retry_using_http_NTLM_auth(self, req, auth_header_field, realm, headers):
def notimplemented():
raise NotImplementedError
response.readline = notimplemented
- return addinfourl(response, response.msg, req.get_full_url())
+ infourl = addinfourl(response, response.msg, req.get_full_url())
+ infourl.code = response.status
+ infourl.msg = response.reason
+ return infourl
except socket.error, err:
raise urllib2.URLError(err)
else:

0 comments on commit 9ae7f33

Please sign in to comment.