diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-03-24 10:57:38 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-03-24 10:57:38 +0100 |
| commit | f5dbb566ee07bf3328015c70574b832052b4ebb7 (patch) | |
| tree | 47fa541fe7f5e8677d6a6eeb5b1a1e82b3715b0c | |
| parent | d384878cc1a73047e79d1a8c4bd924ad39ef8899 (diff) | |
Fixed #17550 -- Removed a workaround for a bug in flup 1.0.1.
This reverts commit 948a833eb7fd9be0bc2d585c92a407f036ef42b2.
flup appears to be dead, and this fix breaks legitimate uses of Django.
Refs #8490.
| -rw-r--r-- | django/core/handlers/wsgi.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/django/core/handlers/wsgi.py b/django/core/handlers/wsgi.py index a9fa094429..78bf101e20 100644 --- a/django/core/handlers/wsgi.py +++ b/django/core/handlers/wsgi.py @@ -129,14 +129,11 @@ class WSGIRequest(http.HttpRequest): def __init__(self, environ): script_name = base.get_script_name(environ) path_info = base.get_path_info(environ) - if not path_info or path_info == script_name: + if not path_info: # Sometimes PATH_INFO exists, but is empty (e.g. accessing # the SCRIPT_NAME URL without a trailing slash). We really need to # operate as if they'd requested '/'. Not amazingly nice to force # the path like this, but should be harmless. - # - # (The comparison of path_info to script_name is to work around an - # apparent bug in flup 1.0.1. See Django ticket #8490). path_info = '/' self.environ = environ self.path_info = path_info |
