[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r19243: {torflow} Woops, needed one more level of indirection. (torflow/trunk/NetworkScanners)
Author: mikeperry
Date: 2009-04-08 02:52:42 -0400 (Wed, 08 Apr 2009)
New Revision: 19243
Modified:
torflow/trunk/NetworkScanners/soat.py
Log:
Woops, needed one more level of indirection.
Modified: torflow/trunk/NetworkScanners/soat.py
===================================================================
--- torflow/trunk/NetworkScanners/soat.py 2009-04-08 06:40:34 UTC (rev 19242)
+++ torflow/trunk/NetworkScanners/soat.py 2009-04-08 06:52:42 UTC (rev 19243)
@@ -1029,7 +1029,7 @@
if test == "html" or test == "http": result = self.check_html(url)
elif test == "js": result = self.check_js(url)
elif test == "image":
- accept_hdr = filter(lambda h: h[0] == "Accept", self.headers)
+ accept_hdr = filter(lambda h: h[0] == "Accept", self.headers)[0]
orig_accept = accept_hdr[1]
accept_hdr[1] = image_accept_hdr
result = self.check_http(url)
@@ -1127,7 +1127,7 @@
def check_js(self, address):
plog('INFO', 'Conducting a js test with destination ' + address)
- accept_hdr = filter(lambda h: h[0] == "Accept", self.headers)
+ accept_hdr = filter(lambda h: h[0] == "Accept", self.headers)[0]
orig_accept = accept_hdr[1]
accept_hdr[1] = script_accept_hdr
ret = self.check_http_nodynamic(address)