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:
Jacob Kaplan-Moss 2008-08-30 19:56:14 +00:00
parent 7c65a31606
commit 15644cb255
6 changed files with 94 additions and 10 deletions

View file

@ -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!")