mirror of
https://github.com/python/cpython.git
synced 2026-05-28 05:11:43 +00:00
fix the incorrect changes made for PATH_INFO value - Issue10484
This commit is contained in:
parent
b1df31f81e
commit
fb2e874707
2 changed files with 7 additions and 11 deletions
|
|
@ -419,6 +419,7 @@ def tearDown(self):
|
|||
BaseTestCase.tearDown(self)
|
||||
|
||||
def test_url_collapse_path_split(self):
|
||||
# verify tail is the last portion and head is the rest on proper urls
|
||||
test_vectors = {
|
||||
'': ('/', ''),
|
||||
'..': IndexError,
|
||||
|
|
@ -429,7 +430,6 @@ def test_url_collapse_path_split(self):
|
|||
'/.//': ('/', ''),
|
||||
'cgi-bin/file1.py': ('/cgi-bin', 'file1.py'),
|
||||
'/cgi-bin/file1.py': ('/cgi-bin', 'file1.py'),
|
||||
'/cgi-bin/file1.py/PATH-INFO': ('/cgi-bin', 'file1.py/PATH-INFO'),
|
||||
'a': ('/', 'a'),
|
||||
'/a': ('/', 'a'),
|
||||
'//a': ('/', 'a'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue