|
@@ -1,3 +1,4 @@
|
|
|
|
|
+import re
|
|
|
from pathlib import Path
|
|
from pathlib import Path
|
|
|
from httphound.main import BaseProxyTest, BackendConfig, ProxyConfig
|
|
from httphound.main import BaseProxyTest, BackendConfig, ProxyConfig
|
|
|
|
|
|
|
@@ -27,6 +28,9 @@ class FailHeaderRegexTest(BaseProxyTest):
|
|
|
|
|
|
|
|
async def run_test(self):
|
|
async def run_test(self):
|
|
|
await self.make_request()
|
|
await self.make_request()
|
|
|
|
|
+ print(self.response_headers)
|
|
|
|
|
+ assert "x-test" in self.response_headers
|
|
|
|
|
+ assert re.match(r"\d{1}$", self.response_headers["x-test"])
|
|
|
return True
|
|
return True
|
|
|
|
|
|
|
|
|
|
|