aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/watch.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/watch.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/watch.py')
-rw-r--r--youtube/watch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/watch.py b/youtube/watch.py
index 9e3a1c2..04a5b5d 100644
--- a/youtube/watch.py
+++ b/youtube/watch.py
@@ -231,7 +231,7 @@ music_list_table_row = Template('''<tr>
def get_watch_page(env, start_response):
video_id = env['parameters']['v'][0]
if len(video_id) < 11:
- start_response('404 Not Found', ())
+ start_response('404 Not Found', [('Content-type', 'text/plain'),])
return b'Incomplete video id (too short): ' + video_id.encode('ascii')
start_response('200 OK', [('Content-type','text/html'),])