@@ -53,7 +53,9 @@ def test_http_adblock_blackhole(self, docker_privoxy, env_info):
5353 mime_type = resp .headers .get ("Content-Type" )
5454 assert mime_type == "text/html"
5555 assert "adblock2privoxy" in resp .text
56- resp = requests .get (f"http://{ env_info ['ip' ]} /notexists/ab2p.common.css" )
56+ resp = requests .get (
57+ f"http://{ env_info ['ip' ]} /notexists/ab2p.common.css" , allow_redirects = True
58+ )
5759 assert resp .status_code == 200
5860 mime_type = resp .headers .get ("Content-Type" )
5961 assert mime_type == "text/html"
@@ -68,14 +70,6 @@ def test_https_adblock_blackhole(self, docker_privoxy, env_info):
6870 mime_type = resp .headers .get ("Content-Type" )
6971 assert mime_type == "text/html"
7072 assert "adblock2privoxy" in resp .text
71- resp = requests .get (
72- f"https://{ env_info ['ip' ]} /notexists/ab2p.common.css" ,
73- verify = "./tests/privoxy-ca-bundle.crt" ,
74- )
75- assert resp .status_code == 200
76- mime_type = resp .headers .get ("Content-Type" )
77- assert mime_type == "text/html"
78- assert "adblock2privoxy" in resp .text
7973
8074 def test_http_adblock_css_filters (self , docker_privoxy , env_info ):
8175 resp = requests .get (f"http://{ env_info ['ip' ]} /ab2p.common.css" )
0 commit comments