[tor-commits] [ooni-probe/master] Break once it detects that the lengths don't match
art at torproject.org
art at torproject.org
Thu Nov 22 14:57:38 UTC 2012
commit 6843fafaeeef924a28255b1566fb8cecc3faef7a
Author: Arturo Filastò <art at fuffa.org>
Date: Thu Nov 22 15:57:14 2012 +0100
Break once it detects that the lengths don't match
---
nettests/core/http_url_list.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/nettests/core/http_url_list.py b/nettests/core/http_url_list.py
index eeaaa35..0accaae 100644
--- a/nettests/core/http_url_list.py
+++ b/nettests/core/http_url_list.py
@@ -74,6 +74,7 @@ class HTTPURLList(httpt.HTTPTest):
# The censored page and the response we got do not match in
# length.
self.report['censored'] = False
+ break
censorship_line = censorship_line.replace("\n", "")
if response_line != censorship_line:
self.report['censored'] = False
More information about the tor-commits
mailing list