mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user