[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

Miroslav Stampar report at bugs.python.org
Fri Apr 26 14:34:48 CEST 2013


Miroslav Stampar added the comment:

Mentioned "divine intervention" could be:

1) Argument strict should be set to 0/False when instantiating HTTPResponse
2) No status should be returned from the backend server (hence the "# assume it's a Simple-Response from an 0.9 server")
3) Any part of response should be read (body, headers, etc.) as HTTPResponse's method begin() uses "self.fp.readline(_MAXLINE + 1)"

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17849>
_______________________________________


More information about the Python-bugs-list mailing list