commit c046653fbd63ff6beb35aa1d87d0bbe5e0014fef Author: Arturo Filastò arturo@filasto.net Date: Mon May 30 15:18:31 2016 +0200
Write a msg when we perform the control lookup
Be more lax when detecting header key similarity --- ooni/nettests/blocking/web_connectivity.py | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/ooni/nettests/blocking/web_connectivity.py b/ooni/nettests/blocking/web_connectivity.py index b4ccff1..0dba239 100644 --- a/ooni/nettests/blocking/web_connectivity.py +++ b/ooni/nettests/blocking/web_connectivity.py @@ -229,6 +229,7 @@ class WebConnectivityTest(httpt.HTTPTest, dnst.DNSTest):
@defer.inlineCallbacks def control_request(self, sockets): + log.msg("* performing control request with backend") self.control = yield self.web_connectivity_client.control( http_request=self.input, tcp_connect=sockets @@ -261,6 +262,10 @@ class WebConnectivityTest(httpt.HTTPTest, dnst.DNSTest): experiment_http_response.headers.getAllRawHeaders() }
+ if (set(control_headers_lower.keys()) == + set(experiment_headers_lower.keys())): + return True + uncommon_ctrl_headers = (set(control_headers_lower.keys()) - set(COMMON_SERVER_HEADERS)) uncommon_exp_headers = (set(experiment_headers_lower.keys()) -