diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-01-06 19:31:01 -0800 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-01-06 19:31:01 -0800 |
commit | 1ba38a5c9cc7a7b21a5a8a54db630f47c9a550ea (patch) | |
tree | 7761c2581b9c5ddc2195b013c7ddd0dec9c01d32 /youtube/accounts.py | |
parent | 1c061783b42aecf8d8843adf9bd89baaba58996c (diff) | |
download | yt-local-1ba38a5c9cc7a7b21a5a8a54db630f47c9a550ea.tar.lz yt-local-1ba38a5c9cc7a7b21a5a8a54db630f47c9a550ea.tar.xz yt-local-1ba38a5c9cc7a7b21a5a8a54db630f47c9a550ea.zip |
Content-type: text/plain for errors or status messages
Diffstat (limited to 'youtube/accounts.py')
-rw-r--r-- | youtube/accounts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/accounts.py b/youtube/accounts.py index 4108269..bde9852 100644 --- a/youtube/accounts.py +++ b/youtube/accounts.py @@ -64,10 +64,10 @@ def add_account(env, start_response): use_tor = False if _add_account(parameters['username'][0], parameters['password'][0], save_account, use_tor ): - start_response('200 OK', () ) + start_response('200 OK', [('Content-type', 'text/plain'),] ) return b'Account successfully added' else: - start_response('200 OK', () ) + start_response('200 OK', [('Content-type', 'text/plain'),] ) return b'Failed to add account' def get_account_login_page(env, start_response): |