aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/youtube.py
diff options
context:
space:
mode:
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'