summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2015-02-10 13:38:19 +0100
committeremkael <emkael@tlen.pl>2015-02-10 13:38:19 +0100
commit80ce42da73d139fd5d55c1ebca0fdc2497028c51 (patch)
tree41e8ae2f8201247e5985aede3654a63fedd3dbe9 /http
parent735ae6533684cea20befc6c8f275f18c7f033599 (diff)
* MIME type fix
Diffstat (limited to 'http')
-rw-r--r--http/index.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/http/index.py b/http/index.py
index f4f7564..4bccde5 100644
--- a/http/index.py
+++ b/http/index.py
@@ -29,6 +29,10 @@ def get_cache_content(cache_key, remote_url, force_refresh=False, user_agent='')
return open(cache_path, 'r').read()
def handler(req):
+
+ # MIME type fix for error messages
+ req.content_type = 'text/plain'
+
# we need to recover original request path, from before rewrite
orig_req = req
while True: