Loading django/test/testcases.py +5 −1 Original line number Diff line number Diff line Loading @@ -958,7 +958,11 @@ class FSFilesHandler(WSGIHandler): def serve(self, request): os_rel_path = self.file_path(request.path) final_rel_path = posixpath.normpath(unquote(os_rel_path)).lstrip('/') os_rel_path = posixpath.normpath(unquote(os_rel_path)) # Emulate behavior of django.contrib.staticfiles.views.serve() when it # invokes staticfiles' finders functionality. # TODO: Modify if/when that internal API is refactored final_rel_path = os_rel_path.replace('\\', '/').lstrip('/') return serve(request, final_rel_path, document_root=self.get_base_dir()) def __call__(self, environ, start_response): Loading Loading
django/test/testcases.py +5 −1 Original line number Diff line number Diff line Loading @@ -958,7 +958,11 @@ class FSFilesHandler(WSGIHandler): def serve(self, request): os_rel_path = self.file_path(request.path) final_rel_path = posixpath.normpath(unquote(os_rel_path)).lstrip('/') os_rel_path = posixpath.normpath(unquote(os_rel_path)) # Emulate behavior of django.contrib.staticfiles.views.serve() when it # invokes staticfiles' finders functionality. # TODO: Modify if/when that internal API is refactored final_rel_path = os_rel_path.replace('\\', '/').lstrip('/') return serve(request, final_rel_path, document_root=self.get_base_dir()) def __call__(self, environ, start_response): Loading