mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #8622: accessing POST after a POST handling exception no longer throws the server into an infinite loop. Thanks to vung for tracking this one down and fixing it.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8748 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
7c65a31606
commit
15644cb255
6 changed files with 94 additions and 10 deletions
|
@ -23,4 +23,12 @@ class QuotaUploadHandler(FileUploadHandler):
|
|||
return raw_data
|
||||
|
||||
def file_complete(self, file_size):
|
||||
return None
|
||||
return None
|
||||
|
||||
class CustomUploadError(Exception):
|
||||
pass
|
||||
|
||||
class ErroringUploadHandler(FileUploadHandler):
|
||||
"""A handler that raises an exception."""
|
||||
def receive_data_chunk(self, raw_data, start):
|
||||
raise CustomUploadError("Oops!")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue