diff options
author | emkael <emkael@tlen.pl> | 2015-02-10 13:38:19 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2015-02-10 13:38:19 +0100 |
commit | 80ce42da73d139fd5d55c1ebca0fdc2497028c51 (patch) | |
tree | 41e8ae2f8201247e5985aede3654a63fedd3dbe9 /http | |
parent | 735ae6533684cea20befc6c8f275f18c7f033599 (diff) |
* MIME type fix
Diffstat (limited to 'http')
-rw-r--r-- | http/index.py | 4 |
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: |