From 80ce42da73d139fd5d55c1ebca0fdc2497028c51 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 10 Feb 2015 13:38:19 +0100 Subject: * MIME type fix --- http/index.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'http') 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: -- cgit v1.2.3