mirror of https://github.com/django/django.git
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:
parent
61c93842f4
commit
d506b90163
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue