diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-11-23 17:48:06 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-11-23 17:48:06 +0000 |
| commit | 9884211a1a072b34391389b5d8e7fc515ac414d5 (patch) | |
| tree | c375fa920fb4d0609dbbe89680b61d4431c902fa | |
| parent | 3abf8e42b550445d94683e5d9c0f7b12557ddf1f (diff) | |
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
| -rw-r--r-- | django/core/handlers/wsgi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/handlers/wsgi.py b/django/core/handlers/wsgi.py index 0f867851fc..7dc1a4a5eb 100644 --- a/django/core/handlers/wsgi.py +++ b/django/core/handlers/wsgi.py @@ -158,7 +158,7 @@ class WSGIRequest(http.HttpRequest): except AttributeError: buf = StringIO() # 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) self._raw_post_data = buf.getvalue() buf.close() |
