mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 00:15:56 +08:00
Add do_HEAD() for auth req handler
CURA-6609
This commit is contained in:
parent
867a881de9
commit
9f110368de
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user