diff --git a/oxdjango/http.py b/oxdjango/http.py index ddf149d..488aefe 100644 --- a/oxdjango/http.py +++ b/oxdjango/http.py @@ -15,8 +15,6 @@ def HttpFileResponse(path, content_type=None, filename=None): if settings.XACCELREDIRECT: response = HttpResponse() response['Content-Length'] = os.stat(path).st_size - if not isinstance(settings.XACCELREDIRECT, bool): - path = path.replace(*settings.XACCELREDIRECT) if path.startswith(settings.STATIC_ROOT): path = settings.STATIC_URL + path[len(settings.STATIC_ROOT)+1:] if path.startswith(settings.MEDIA_ROOT):