Remove stray print & massage whitespace a bit

This commit is contained in:
Aldo Cortesi 2015-06-25 10:27:22 +12:00
parent becc790d83
commit 876252eba8
1 changed files with 6 additions and 9 deletions

View File

@ -1314,9 +1314,7 @@ class HTTPHandler(ProtocolHandler):
pass pass
elif request.form_in == self.expected_form_in: elif request.form_in == self.expected_form_in:
request.form_out = self.expected_form_out request.form_out = self.expected_form_out
if request.form_in == "absolute": if request.form_in == "absolute":
if request.scheme != "http": if request.scheme != "http":
raise http.HttpError( raise http.HttpError(
@ -1348,7 +1346,6 @@ class HTTPHandler(ProtocolHandler):
if self.c.config.mode == "sslspoof": if self.c.config.mode == "sslspoof":
# SNI is processed in server.py # SNI is processed in server.py
if not (flow.server_conn and flow.server_conn.ssl_established): if not (flow.server_conn and flow.server_conn.ssl_established):
print ":::::::::::::::"
raise http.HttpError( raise http.HttpError(
400, 400,
"Invalid request: No host information" "Invalid request: No host information"