From 1ba38a5c9cc7a7b21a5a8a54db630f47c9a550ea Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sun, 6 Jan 2019 19:31:01 -0800 Subject: Content-type: text/plain for errors or status messages --- youtube/watch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube/watch.py') 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(''' 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'),]) -- cgit v1.2.3