We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f70ac99 commit 32848afCopy full SHA for 32848af
Lib/urllib/request.py
@@ -1006,7 +1006,7 @@ def http_request(self, req):
1006
1007
def http_response(self, req, response):
1008
if hasattr(self.passwd, 'is_authenticated'):
1009
- if 200 <= response.code < 300:
+ if 200 <= response.status < 300:
1010
self.passwd.update_authenticated(req.full_url, True)
1011
else:
1012
self.passwd.update_authenticated(req.full_url, False)
0 commit comments