diff -r f4cee4125170 django/core/handlers/wsgi.py
a
|
b
|
|
126 | 126 | |
127 | 127 | class WSGIRequest(http.HttpRequest): |
128 | 128 | def __init__(self, environ): |
129 | | script_name = base.get_script_name(environ) |
130 | | path_info = force_unicode(environ.get('PATH_INFO', u'/')) |
| 129 | script_name = base.get_script_name(environ).decode('latin-1') |
| 130 | path_info = environ.get('PATH_INFO', '/').decode('latin-1') |
131 | 131 | if not path_info or path_info == script_name: |
132 | 132 | # Sometimes PATH_INFO exists, but is empty (e.g. accessing |
133 | 133 | # the SCRIPT_NAME URL without a trailing slash). We really need to |
… |
… |
|
136 | 136 | # |
137 | 137 | # (The comparison of path_info to script_name is to work around an |
138 | 138 | # apparent bug in flup 1.0.1. Se Django ticket #8490). |
139 | | path_info = u'/' |
| 139 | path_info = '/'.decode('latin-1') |
140 | 140 | self.environ = environ |
141 | 141 | self.path_info = path_info |
142 | 142 | self.path = '%s%s' % (script_name, path_info) |