better info to debug issue 921

This commit is contained in:
mdipierro
2012-08-08 09:35:01 -05:00
parent fdc895a1db
commit d7c00f2240
3 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -405,7 +405,8 @@ def wsgibase(environ, responder):
except socket.gaierror: pass
request.client = get_client(request.env)
if not is_valid_ip_address(request.client):
raise HTTP(400,"Bad Request")
raise HTTP(400,"Bad Request (request.client=%s)" % \
request.client)
request.folder = abspath('applications',
request.application) + os.sep
x_req_with = str(request.env.http_x_requested_with).lower()