aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-07-24 04:08:34 -0700
committerJames Taylor <user234683@users.noreply.github.com>2018-07-24 04:08:34 -0700
commit62769d94c58b38229847e7e7df5d7f0df34ae188 (patch)
treee2419d4919831e4e27e862aa0a8bef997e885f3a
parent7a22af4db66cf9778b2cf15e2567d792c5a5134e (diff)
downloadyt-local-62769d94c58b38229847e7e7df5d7f0df34ae188.tar.lz
yt-local-62769d94c58b38229847e7e7df5d7f0df34ae188.tar.xz
yt-local-62769d94c58b38229847e7e7df5d7f0df34ae188.zip
relay headers when proxying site so caching happens
-rw-r--r--server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.py b/server.py
index 3a55eae..5b20814 100644
--- a/server.py
+++ b/server.py
@@ -42,7 +42,7 @@ def proxy_site(env, start_response):
url += '?' + env['QUERY_STRING']
req = urllib.request.Request(url, headers=headers)
response = urllib.request.urlopen(req, timeout = 10)
- start_response('200 OK', () )
+ start_response('200 OK', response.getheaders() )
return response.read()
site_handlers = {