diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-02-01 20:08:10 +0000 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-02-01 20:08:10 +0000 |
| commit | dcbd5eefd677cb7cb2bcdedab4b7f73173ed82fa (patch) | |
| tree | dfd6f9269d07bd741002e61a2203fad6d266f251 /django | |
| parent | d8e75f6c6f97f1797f841d3b72973188e359e1e7 (diff) | |
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
Diffstat (limited to 'django')
| -rw-r--r-- | django/test/testcases.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py index 0110d5e24d..c2fe15e902 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -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()) |
