Add do_HEAD() for auth req handler

CURA-6609
This commit is contained in:
Lipu Fei 2019-08-27 14:48:00 +02:00
parent 867a881de9
commit 9f110368de

View file

@ -25,6 +25,10 @@ class AuthorizationRequestHandler(BaseHTTPRequestHandler):
self.authorization_callback = None # type: Optional[Callable[[AuthenticationResponse], None]] self.authorization_callback = None # type: Optional[Callable[[AuthenticationResponse], None]]
self.verification_code = None # type: Optional[str] self.verification_code = None # type: Optional[str]
# CURA-6609: Some browser seems to issue a HEAD instead of GET request as the callback.
def do_HEAD(self) -> None:
self.do_GET()
def do_GET(self) -> None: def do_GET(self) -> None:
# Extract values from the query string. # Extract values from the query string.
parsed_url = urlparse(self.path) parsed_url = urlparse(self.path)