[patch] core.handlers.wsgi.py doesn't properly handle blank CONTENT LENGTH with patch
|Reported by:||anonymous||Owned by:||Adrian Holovaty|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I was getting some strange errors trying to do some AJAX-type stuff and kept getting a strange traceback. I traced it to the wsgi.py:122.
if CONTENT LENGTH = , it fails with a Value Error.
Here is a patch:
replace line 122 with these:
self._raw_post_data = self.environwsgi.input?.read(0)
Change History (5)
comment:3 Changed 10 years ago by
|Summary:||core.handlers.wsgi.py doesn't properly handle blank CONTENT LENGTH with patch → [patch] core.handlers.wsgi.py doesn't properly handle blank CONTENT LENGTH with patch|