aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/youtube.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/youtube.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/youtube.py')
-rw-r--r--youtube/youtube.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube/youtube.py b/youtube/youtube.py
index 988e09a..240e785 100644
--- a/youtube/youtube.py
+++ b/youtube/youtube.py
@@ -75,11 +75,11 @@ def youtube(env, start_response):
return f.read().replace(b'$port_number', str(settings.port_number).encode())
elif path == "/comment_delete_success":
- start_response('200 OK', () )
+ start_response('200 OK', [('Content-type', 'text/plain'),] )
return b'Successfully deleted comment'
elif path == "/comment_delete_fail":
- start_response('200 OK', () )
+ start_response('200 OK', [('Content-type', 'text/plain'),] )
return b'Failed to deleted comment'
else:
@@ -97,9 +97,9 @@ def youtube(env, start_response):
else:
return handler(env, start_response)
- start_response('404 Not Found', ())
+ start_response('404 Not Found', [('Content-type', 'text/plain'),])
return b'404 Not Found'
else:
- start_response('501 Not Implemented', ())
+ start_response('501 Not Implemented', [('Content-type', 'text/plain'),])
return b'501 Not Implemented'