From 2ca4757599a358ec6b06d8eb29cb2c145e2de81f Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Thu, 31 Jul 2014 18:03:18 -0700 Subject: [PATCH] fix integration test for proxy_pac --- tests/test_integration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_integration.py b/tests/test_integration.py index 456d50f8..a3bd6f3b 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -385,7 +385,7 @@ class TestWb: assert resp.status_int == 407 def test_proxy_pac(self): - resp = self.testapp.get('/proxy.pac', extra_environ = dict(SERVER_NAME='pywb-proxy', SERVER_PORT='8080')) + resp = self.testapp.get('/proxy.pac', headers = [('Host', 'pywb-proxy:8080')]) assert resp.content_type == 'application/x-ns-proxy-autoconfig' assert '"PROXY pywb-proxy:8080"' in resp.body assert '"localhost"' in resp.body