mirror of
https://github.com/django/django.git
synced 2025-09-24 11:12:36 +00:00
Fixed #17469 -- Prevented a double URL-to-filesystem path translation in the media handler of LiveServerTestCase, which led to infinite redirection loops under Windows and test failures.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17416 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d8e75f6c6f
commit
dcbd5eefd6
1 changed files with 1 additions and 1 deletions
|
@ -998,7 +998,7 @@ class _MediaFilesHandler(StaticFilesHandler):
|
|||
return settings.MEDIA_URL
|
||||
|
||||
def serve(self, request):
|
||||
return serve(request, self.file_path(request.path),
|
||||
return serve(request, request.path,
|
||||
document_root=self.get_base_dir())
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue