Fixed #2924 -- Development server no longer spins on an empty form post. Bug caused by [3805]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4144 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-11-29 22:51:24 +00:00
parent 61c93842f4
commit d506b90163
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ def safe_copyfileobj(fsrc, fdst, length=16*1024, size=0):
data in the body. data in the body.
""" """
if not size: if not size:
return copyfileobj(fsrc, fdst, length) return
while size > 0: while size > 0:
buf = fsrc.read(min(length, size)) buf = fsrc.read(min(length, size))
if not buf: if not buf: