Properly handle the "manual" mode of copy and paste auth information

This commit is contained in:
blitzmann
2021-10-18 14:06:36 -04:00
parent 17391f119c
commit f3f7d688ab
3 changed files with 8 additions and 10 deletions

View File

@@ -22,7 +22,7 @@ class AuthHandler(http.server.BaseHTTPRequestHandler):
return
parsed_path = urllib.parse.urlparse(self.path)
parts = urllib.parse.parse_qs(parsed_path.query)
parts = {k: ";".join(v) for k, v in urllib.parse.parse_qs(parsed_path.query).items()}
is_success = False
try:
self.server.callback(parts)
@@ -48,8 +48,6 @@ class AuthHandler(http.server.BaseHTTPRequestHandler):
self.end_headers()
# send error
if is_success:
self.server.stop()