summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
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: