mirror of
https://github.com/django/django.git
synced 2024-12-27 03:25:58 +00:00
Removed special-case test for '_files' URL in common middleware -- thanks, Jeremy Dunck
git-svn-id: http://code.djangoproject.com/svn/django/trunk@513 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
071037ff80
commit
00da60e932
@ -98,7 +98,4 @@ def _is_ignorable_404(uri):
|
|||||||
for end in settings.IGNORABLE_404_ENDS:
|
for end in settings.IGNORABLE_404_ENDS:
|
||||||
if uri.endswith(end):
|
if uri.endswith(end):
|
||||||
return True
|
return True
|
||||||
if '_files' in uri:
|
|
||||||
# URI is probably from a locally-saved copy of the page.
|
|
||||||
return True
|
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user