aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/local_playlist.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-01-06 19:31:01 -0800
committerJames Taylor <user234683@users.noreply.github.com>2019-01-06 19:31:01 -0800
commit1ba38a5c9cc7a7b21a5a8a54db630f47c9a550ea (patch)
tree7761c2581b9c5ddc2195b013c7ddd0dec9c01d32 /youtube/local_playlist.py
parent1c061783b42aecf8d8843adf9bd89baaba58996c (diff)
downloadyt-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/local_playlist.py')
-rw-r--r--youtube/local_playlist.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/local_playlist.py b/youtube/local_playlist.py
index bfca48f..0375040 100644
--- a/youtube/local_playlist.py
+++ b/youtube/local_playlist.py
@@ -155,7 +155,7 @@ def path_edit_playlist(env, start_response):
return b''
else:
- start_response('400 Bad Request', ())
+ start_response('400 Bad Request', [('Content-type', 'text/plain'),])
return b'400 Bad Request'
def edit_playlist(env, start_response):
@@ -165,5 +165,5 @@ def edit_playlist(env, start_response):
add_to_playlist(parameters['playlist_name'][0], parameters['video_info_list'])
start_response('204 No Content', ())
else:
- start_response('400 Bad Request', ())
+ start_response('400 Bad Request', [('Content-type', 'text/plain'),])
return b'400 Bad Request'