mirror of
https://github.com/django/django.git
synced 2025-03-06 07:22:32 +00:00
Removed redundant check from StaticFilesHandler.
This commit is contained in:
parent
b915b9f10f
commit
6a92bcf55b
@ -53,12 +53,10 @@ class StaticFilesHandler(WSGIHandler):
|
||||
def get_response(self, request):
|
||||
from django.http import Http404
|
||||
|
||||
if self._should_handle(request.path):
|
||||
try:
|
||||
return self.serve(request)
|
||||
except Http404 as e:
|
||||
return response_for_exception(request, e)
|
||||
return super().get_response(request)
|
||||
try:
|
||||
return self.serve(request)
|
||||
except Http404 as e:
|
||||
return response_for_exception(request, e)
|
||||
|
||||
def __call__(self, environ, start_response):
|
||||
if not self._should_handle(get_path_info(environ)):
|
||||
|
Loading…
x
Reference in New Issue
Block a user