better info to debug issue 921

This commit is contained in:
mdipierro committed 2012-08-08 09:35:01 -05:00
1 parent a5561c1f6f
commit fd8ed7937d
3 files changed
+7 -6

No files matched your search

+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()