diff options
| author | Bas Peschier <basp@fabrique.nl> | 2015-03-08 15:06:23 +0100 |
|---|---|---|
| committer | Markus Holtermann <info@markusholtermann.eu> | 2015-03-08 15:48:27 +0100 |
| commit | 336512fae77ec214ad6db24166b9a8676007cc09 (patch) | |
| tree | fa3b5d711f82dca40d4cd43ead6c498747196257 /django | |
| parent | a5b225084f69e27b78fab0f2954fa9520656976e (diff) | |
Fixed #23173 -- Fixed incorrect stripping of SCRIPT_URL
Diffstat (limited to 'django')
| -rw-r--r-- | django/core/handlers/wsgi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/handlers/wsgi.py b/django/core/handlers/wsgi.py index df6afdd297..50766cb7aa 100644 --- a/django/core/handlers/wsgi.py +++ b/django/core/handlers/wsgi.py @@ -219,7 +219,7 @@ def get_script_name(environ): if script_url: path_info = get_bytes_from_wsgi(environ, 'PATH_INFO', '') - script_name = script_url[:-len(path_info)] + script_name = script_url[:-len(path_info)] if path_info else script_url else: script_name = get_bytes_from_wsgi(environ, 'SCRIPT_NAME', '') |
