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 ca72c0f commit ae7aa2dCopy full SHA for ae7aa2d
test/unit/test_archive.py
@@ -479,8 +479,9 @@ def getCommon(self):
479
challenge = 'Basic ' + base64.b64encode(
480
(username+":"+password).encode("utf-8")).decode("ascii")
481
if self.headers.get('Authorization') != challenge:
482
+ self.send_response(401, "Unauthorized")
483
self.send_header("WWW-Authenticate", 'Basic realm="default"')
- self.send_error(401, "Unauthorized")
484
+ self.end_headers()
485
return None
486
487
path = repoPath + self.path
0 commit comments