Skip to content

Commit

Permalink
Fixed #17469 -- Prevented a double URL-to-filesystem path translation…
Browse files Browse the repository at this point in the history
… 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
aaugustin committed Feb 1, 2012
1 parent d8e75f6 commit dcbd5ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/test/testcases.py
Expand Up @@ -998,7 +998,7 @@ def get_base_url(self):
return settings.MEDIA_URL return settings.MEDIA_URL


def serve(self, request): def serve(self, request):
return serve(request, self.file_path(request.path), return serve(request, request.path,
document_root=self.get_base_dir()) document_root=self.get_base_dir())




Expand Down

0 comments on commit dcbd5ee

Please sign in to comment.