bug in http::geturl
Closed / Out of Date2900683fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2009-11-19 19:54:24
In http 2.7.2, there is a bug that can cause a web page to report failure when in fact it has succeeded. In http::Event, the code that reads the HTTP response (such as "HTTP/1.1 200 OK") fails to check the returned size of that read. If there is data available on that socket, but the data doesn't represent a complete line, the call to "gets" will return -1 (which is ignored) and the HTTP response code is stored as the empty string. This causes logic errors in later code, with the end result that the entire page contents gets treated as HTTP header information.
kraneyplain2009-11-20 02:55:07
File Added - 351715: http.diff
andreas_kupriesplain2009-11-20 02:59:18
Is this bug still present in http 2.7.5 ?
kraneyplain2009-11-20 03:07:08
No, it isn't. Sorry about that.
dgpplain2009-11-20 05:28:01
allow_comments - 1
Log in (anonymous is fine) to add a comment.
Attachments:
- http.diff [download] added by kraney on 2009-11-20 02:55:07. [details]