From 62769d94c58b38229847e7e7df5d7f0df34ae188 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Tue, 24 Jul 2018 04:08:34 -0700 Subject: relay headers when proxying site so caching happens --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server.py') 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 = { -- cgit v1.2.3