Django

Code

Changeset 4094

Show
Ignore:
Timestamp:
11/23/06 11:48:06 (2 years ago)
Author:
adrian
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/handlers/wsgi.py

    r4091 r4094  
    159159            buf = StringIO() 
    160160            # 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)) 
    162162            safe_copyfileobj(self.environ['wsgi.input'], buf, size=content_length) 
    163163            self._raw_post_data = buf.getvalue()