[or-cvs] r19610: {check} <edmanm> ioerror: while you're patching TorCheck.py, setting (check/trunk/cgi-bin)
ioerror at seul.org
ioerror at seul.org
Mon Jun 1 21:30:44 UTC 2009
Author: ioerror
Date: 2009-06-01 17:30:44 -0400 (Mon, 01 Jun 2009)
New Revision: 19610
Modified:
check/trunk/cgi-bin/TorCheck.py
Log:
<edmanm> ioerror: while you're patching TorCheck.py, setting req.content_type *after* req.send_http_header() is nonsensical. - I agree, patched and updated.
Modified: check/trunk/cgi-bin/TorCheck.py
===================================================================
--- check/trunk/cgi-bin/TorCheck.py 2009-06-01 21:22:47 UTC (rev 19609)
+++ check/trunk/cgi-bin/TorCheck.py 2009-06-01 21:30:44 UTC (rev 19610)
@@ -167,8 +167,8 @@
if UsingTor != 0:
UsingTor = isUsingTor(req.connection.remote_ip, "443")
+ req.content_type = 'text/html; charset=utf-8'
req.send_http_header()
- req.content_type = 'text/html; charset=utf-8'
# We want to catch TorButton queries so they don't output overhead
# This is to make all the data fit into one cell
More information about the tor-commits
mailing list