summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNyiro Gergo <gergo.nyiro@balabit.com>2015-07-24 13:20:07 +0200
committerNyiro Gergo <gergo.nyiro@balabit.com>2015-07-24 13:20:07 +0200
commite5427d8e47c7ccf96e87e211a36fb79123b501c1 (patch)
treec378ff35db545e8c395e9e0d0aff7cbbd3e88307
parent4a3ff5dca5225d6ed0c19498ba01012f1b97f535 (diff)
downloadcherrypy-e5427d8e47c7ccf96e87e211a36fb79123b501c1.tar.gz
wsgiserver HTTPRequest read_request_line: update error message
No valid -> Invalid
-rw-r--r--cherrypy/test/test_request_obj.py2
-rw-r--r--cherrypy/wsgiserver/wsgiserver2.py2
-rw-r--r--cherrypy/wsgiserver/wsgiserver3.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/cherrypy/test/test_request_obj.py b/cherrypy/test/test_request_obj.py
index 64ac0e26..a74ddddf 100644
--- a/cherrypy/test/test_request_obj.py
+++ b/cherrypy/test/test_request_obj.py
@@ -383,7 +383,7 @@ class RequestObjectTests(helper.CPWebCase):
'Multiple values for parameters',
'Unexpected query string parameters',
'Unexpected body parameters',
- 'No valid path in Request-URI',
+ 'Invalid path in Request-URI',
'Illegal #fragment in Request-URI',
]
diff --git a/cherrypy/wsgiserver/wsgiserver2.py b/cherrypy/wsgiserver/wsgiserver2.py
index ff3337bf..7a33a478 100644
--- a/cherrypy/wsgiserver/wsgiserver2.py
+++ b/cherrypy/wsgiserver/wsgiserver2.py
@@ -676,7 +676,7 @@ class HTTPRequest(object):
scheme, authority, path = self.parse_request_uri(uri)
if path is None:
self.simple_response("400 Bad Request",
- "No valid path in Request-URI.")
+ "Invalid path in Request-URI.")
return False
if NUMBER_SIGN in path:
self.simple_response("400 Bad Request",
diff --git a/cherrypy/wsgiserver/wsgiserver3.py b/cherrypy/wsgiserver/wsgiserver3.py
index 6a6a65e2..a8fb0168 100644
--- a/cherrypy/wsgiserver/wsgiserver3.py
+++ b/cherrypy/wsgiserver/wsgiserver3.py
@@ -652,7 +652,7 @@ class HTTPRequest(object):
scheme, authority, path = self.parse_request_uri(uri)
if path is None:
self.simple_response("400 Bad Request",
- "No valid path in Request-URI.")
+ "Invalid path in Request-URI.")
return False
if NUMBER_SIGN in path:
self.simple_response("400 Bad Request",