Revision 691744c4 lib/http/__init__.py
b/lib/http/__init__.py | ||
---|---|---|
1002 | 1002 |
if hdr_content_length: |
1003 | 1003 |
try: |
1004 | 1004 |
self.content_length = int(hdr_content_length) |
1005 |
except ValueError:
|
|
1005 |
except (TypeError, ValueError):
|
|
1006 | 1006 |
self.content_length = None |
1007 | 1007 |
if self.content_length is not None and self.content_length < 0: |
1008 | 1008 |
self.content_length = None |
Also available in: Unified diff