(s)
Handle a GET request.

    Parses the query parameters and prints a message
    if the flow has completed. Note that we can't detect
    if an error occurred.
Handle a GET request.
Handle a GET request .
def do_GET(s):
    """Handle a GET request.

    Parses the query parameters and prints a message
    if the flow has completed. Note that we can't detect
    if an error occurred.
    """
    s.send_response(200)
    s.send_header("Content-type", "text/html")
    s.end_headers()
    query = s.path.split('?', 1)[-1]
    query = dict(parse_qsl(query))
    s.server.query_params = query
    s.wfile.write("<html><head><title>Authentication Status</title></head>")
    s.wfile.write("<body><p>The authentication flow has completed.</p>")
    s.wfile.write("</body></html>")
def do_GET ( s ) : s . send_response ( 200 ) s . send_header ( "Content-type" , "text/html" ) s . end_headers ( ) query = s . path . split ( '?' , 1 ) [ - 1 ] query = dict ( parse_qsl ( query ) ) s . server . query_params = query s . wfile . write ( "<html><head><title>Authentication Status</title></head>" ) s . wfile . write ( "<body><p>The authentication flow has completed.</p>" ) s . wfile . write ( "</body></html>" )