Fixed #3057 -- Fixed typo in [4091]. Thanks for the heads-up, Barry Pederson
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
3abf8e42b5
commit
9884211a1a
|
@ -158,7 +158,7 @@ class WSGIRequest(http.HttpRequest):
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
buf = StringIO()
|
buf = StringIO()
|
||||||
# CONTENT_LENGTH might be absent if POST doesn't have content at all (lighttpd)
|
# CONTENT_LENGTH might be absent if POST doesn't have content at all (lighttpd)
|
||||||
content_length = int(self.environ.get('CONTENT_LENGTH', ))
|
content_length = int(self.environ.get('CONTENT_LENGTH', 0))
|
||||||
safe_copyfileobj(self.environ['wsgi.input'], buf, size=content_length)
|
safe_copyfileobj(self.environ['wsgi.input'], buf, size=content_length)
|
||||||
self._raw_post_data = buf.getvalue()
|
self._raw_post_data = buf.getvalue()
|
||||||
buf.close()
|
buf.close()
|
||||||
|
|
Loading…
Reference in New Issue