diff options
author | ianb <devnull@localhost> | 2006-12-22 03:56:06 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2006-12-22 03:56:06 +0000 |
commit | b6c28f398046174ce6eae1193e24ee3a716e64b7 (patch) | |
tree | 2aa7328663c3fdff9f2355a110df0d3866c49ef7 /paste/urlparser.py | |
parent | 8aa0c58cfb01e8f1c615c8c0d7e910c62ec8a8b7 (diff) | |
download | paste-b6c28f398046174ce6eae1193e24ee3a716e64b7.tar.gz |
Use 404 instead of 400 when there's extra path on a static file, like with /index.html/foo'
Diffstat (limited to 'paste/urlparser.py')
-rw-r--r-- | paste/urlparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/urlparser.py b/paste/urlparser.py index f096c1b..dda547f 100644 --- a/paste/urlparser.py +++ b/paste/urlparser.py @@ -506,7 +506,7 @@ class StaticURLParser(object): return exc.wsgi_application(environ, start_response) def error_extra_path(self, environ, start_response): - exc = httpexceptions.HTTPBadRequest( + exc = httpexceptions.HTTPNotFound( 'The trailing path %r is not allowed' % environ['PATH_INFO']) return exc.wsgi_application(environ, start_response) |