Changeset 8495
- Timestamp:
- 08/23/08 13:08:28 (3 months ago)
- Files:
-
- django/trunk/django/core/handlers/wsgi.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/handlers/wsgi.py
r8223 r8495 174 174 # CONTENT_LENGTH might be absent if POST doesn't have content at all (lighttpd) 175 175 content_length = int(self.environ.get('CONTENT_LENGTH', 0)) 176 except ValueError: # if CONTENT_LENGTH was empty string or not an integer 176 except (ValueError, TypeError): 177 # If CONTENT_LENGTH was empty string or not an integer, don't 178 # error out. We've also seen None passed in here (against all 179 # specs, but see ticket #8259), so we handle TypeError as well. 177 180 content_length = 0 178 181 if content_length > 0:
