Permalink
Browse files

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
  • Loading branch information...
1 parent d8e75f6 commit dcbd5eefd677cb7cb2bcdedab4b7f73173ed82fa @aaugustin aaugustin committed Feb 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/test/testcases.py
View
2 django/test/testcases.py
@@ -998,7 +998,7 @@ def get_base_url(self):
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())

0 comments on commit dcbd5ee

Please sign in to comment.