diff options
author | James Taylor <user234683@users.noreply.github.com> | 2018-07-24 04:08:34 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2018-07-24 04:08:34 -0700 |
commit | 62769d94c58b38229847e7e7df5d7f0df34ae188 (patch) | |
tree | e2419d4919831e4e27e862aa0a8bef997e885f3a | |
parent | 7a22af4db66cf9778b2cf15e2567d792c5a5134e (diff) | |
download | yt-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 = { |