Issue 868571: HTTPResponse.read(amt) fails when response length is UNKNOWN (original) (raw)
Issue868571
Created on 2003-12-31 19:18 by gmonroe, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Messages (3) | ||
---|---|---|
msg60438 - (view) | Author: Grant Monroe (gmonroe) | Date: 2003-12-31 19:18 |
If the length of the reponse from an HTTPConnection is unknown, then a read with a specified amount fails. File "/home/grant/local/lib/python2.3/httplib.py", line 404, in read self.length -= amt TypeError: unsupported operand type(s) for -=: 'str' and 'int' | ||
msg60439 - (view) | Author: ruben decrop (cropr) | Date: 2005-05-24 07:31 |
Logged In: YES user_id=17539 I can reproduce the same error. This happens when the server answers using the HTTP 0.9 protocol. Apparently the _read_status() is getting confused for some HTTP 0.9 messages. | ||
msg114305 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2010-08-18 23:57 |
Closed as svn blame shows this is hopelessly out of date. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:01 | admin | set | github: 39743 |
2010-08-18 23:57:30 | BreamoreBoy | set | status: open -> closednosy: + BreamoreBoymessages: + resolution: out of date |
2009-04-22 17:20:05 | ajaksu2 | set | keywords: + easy |
2009-02-13 05:07:32 | ajaksu2 | set | nosy: + ajaksu2stage: test neededtype: behaviorversions: + Python 2.6, - Python 2.3 |
2003-12-31 19🔞19 | gmonroe | create |