Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #3057 -- Fixed typo in [4091]. Thanks for the heads-up, Barry P…

…ederson

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9884211a1a072b34391389b5d8e7fc515ac414d5 1 parent 3abf8e4
Adrian Holovaty authored November 23, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/core/handlers/wsgi.py
2  django/core/handlers/wsgi.py
@@ -158,7 +158,7 @@ def _get_raw_post_data(self):
158 158
         except AttributeError:
159 159
             buf = StringIO()
160 160
             # CONTENT_LENGTH might be absent if POST doesn't have content at all (lighttpd)
161  
-            content_length = int(self.environ.get('CONTENT_LENGTH', ))
  161
+            content_length = int(self.environ.get('CONTENT_LENGTH', 0))
162 162
             safe_copyfileobj(self.environ['wsgi.input'], buf, size=content_length)
163 163
             self._raw_post_data = buf.getvalue()
164 164
             buf.close()

0 notes on commit 9884211

Please sign in to comment.
Something went wrong with that request. Please try again.