Skip to content

Commit 32848af

Browse files
authored
Update request.py
1 parent f70ac99 commit 32848af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/urllib/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ def http_request(self, req):
10061006

10071007
def http_response(self, req, response):
10081008
if hasattr(self.passwd, 'is_authenticated'):
1009-
if 200 <= response.code < 300:
1009+
if 200 <= response.status < 300:
10101010
self.passwd.update_authenticated(req.full_url, True)
10111011
else:
10121012
self.passwd.update_authenticated(req.full_url, False)

0 commit comments

Comments
 (0)