Closed GoogleCodeExporter closed 9 years ago
Sorry. What I get is "AttributeError: addinfourl instance has no attribute
'code'"
and "AttributeError: addinfourl instance has no attribute 'msg'"
Original comment by mischko....@gmail.com
on 17 Dec 2009 at 9:44
From copying a bit of the urllib2 source code:
Index: python26/ntlm/HTTPNtlmAuthHandler.py
===================================================================
--- python26/ntlm/HTTPNtlmAuthHandler.py (revision 77)
+++ python26/ntlm/HTTPNtlmAuthHandler.py (working copy)
@@ -81,7 +81,9 @@
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
except socket.error, err:
raise urllib2.URLError(err)
else:
Original comment by dho...@gmail.com
on 12 Jan 2011 at 10:16
Obviously, in the patch I forgot to return infourl
Original comment by dho...@gmail.com
on 13 Jan 2011 at 3:09
Please test to make sure this feature is working properly.
Original comment by dho...@gmail.com
on 13 Jan 2011 at 5:59
Original issue reported on code.google.com by
mischko....@gmail.com
on 17 Dec 2009 at 9:43