mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #8381 -- Fixed a problem with appending slashes in the common middleware
when SCRIPT_NAME contains something other than '/'. Patch from jcassee. Also fixed the middleware tests to work with this patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8456 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b9407b26df
commit
1e1f7c58bc
2 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@ class CommonMiddlewareTest(TestCase):
|
|||
'SERVER_NAME': 'testserver',
|
||||
'SERVER_PORT': 80,
|
||||
}
|
||||
request.path = "/middleware/%s" % path
|
||||
request.path = request.path_info = "/middleware/%s" % path
|
||||
return request
|
||||
|
||||
def test_append_slash_have_slash(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue