diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-01-05 00:20:39 -0800 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-01-05 00:20:39 -0800 |
commit | a57fc774260f2940449880ec9b6aaf40fa2776c3 (patch) | |
tree | 5a3c1620f637d0ed9c965dc3aadb16f397471e15 /youtube/accounts.py | |
parent | ec2fb71a3701379246e3b9210cce25aa3f548fcc (diff) | |
download | yt-local-a57fc774260f2940449880ec9b6aaf40fa2776c3.tar.lz yt-local-a57fc774260f2940449880ec9b6aaf40fa2776c3.tar.xz yt-local-a57fc774260f2940449880ec9b6aaf40fa2776c3.zip |
WSGI for simple non-path GET pages
Diffstat (limited to 'youtube/accounts.py')
-rw-r--r-- | youtube/accounts.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube/accounts.py b/youtube/accounts.py index e7336a4..ebb9eae 100644 --- a/youtube/accounts.py +++ b/youtube/accounts.py @@ -51,7 +51,9 @@ def cookiejar_from_lwp_str(lwp_str): def account_cookiejar(channel_id): return cookiejar_from_lwp_str('\n'.join(accounts[channel_id]['cookies'])) -def get_account_login_page(query_string): +def get_account_login_page(env, start_response): + start_response('200 OK', [('Content-type','text/html'),] ) + style = ''' main{ display: grid; @@ -114,7 +116,7 @@ Using Tor to log in should only be done if the account was created using a proxy style = style, header = common.get_header(), page = page, - ) + ).encode('utf-8') |