mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-03-13 17:13:21 -06:00
Fix authorization handler.
This commit is contained in:
parent
99ff261d8e
commit
e96d441307
@ -1,6 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from future import standard_library
|
||||
standard_library.install_aliases()
|
||||
import http.server
|
||||
import application
|
||||
from urllib.parse import urlparse, parse_qs
|
||||
@ -19,5 +17,5 @@ class handler(http.server.BaseHTTPRequestHandler):
|
||||
params = parse_qs(urlparse(self.path).query)
|
||||
global verifier
|
||||
verifier = params.get('oauth_verifier', [None])[0]
|
||||
self.wfile.write("You have successfully logged into Twitter with {0}. You can close this window now.".format(application.name))
|
||||
self.wfile.write(bytes(_("You have successfully logged into Twitter with {0}. You can close this window now.".format(application.name)),"utf-8"))
|
||||
self.finish()
|
||||
|
Loading…
x
Reference in New Issue
Block a user