File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -76,11 +76,14 @@ class WSGIRequest(http.HttpRequest):
76
76
def __init__ (self , environ ):
77
77
script_name = base .get_script_name (environ )
78
78
path_info = force_unicode (environ .get ('PATH_INFO' , u'/' ))
79
- if not path_info :
79
+ if not path_info or path_info == script_name :
80
80
# Sometimes PATH_INFO exists, but is empty (e.g. accessing
81
81
# the SCRIPT_NAME URL without a trailing slash). We really need to
82
82
# operate as if they'd requested '/'. Not amazingly nice to force
83
83
# the path like this, but should be harmless.
84
+ #
85
+ # (The comparison of path_info to script_name is to work around an
86
+ # apparent bug in flup 1.0.1. Se Django ticket #8490).
84
87
path_info = u'/'
85
88
self .environ = environ
86
89
self .path_info = path_info
You can’t perform that action at this time.
0 commit comments