commit 6843fafaeeef924a28255b1566fb8cecc3faef7a Author: Arturo Filastò art@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
tor-commits@lists.torproject.org