Overview
| Artifact ID: | e53299feee6fee3393dc3ca34d8947c55509fa69 |
|---|---|
| Ticket: | 2874782fffffffffffffffffffffffffffffffff
http 2.7.2 fails to correctly parse input |
| User & Date: | cwjolly on 2009-10-12 01:21:32 |
Changes
- icomment:
When I wrote this bug my intention was to show that there were blank lines in the input before the response header, I'm a unix guy so I naturally used \n but in reality it could have been \r\n. My only intention was to show the blank lines; a series of 4 blank lines before the header may be misinterpreted by anyone that looks as this bug as a formating to set the output off from the rest of the text. As the content-length value shows up after the response header line it has no effect on how the http::get_url function gets the response header. What I do know is if the reponse header is not correctly read in, many of the state array items are incorrect or missing. Whether on the first time or the 5th time, anytime this happens it is a bad thing. Without knowing for sure; I cannot believe that the encoding has anything to do with the response header as it arrives before the metadata that holds the encoding parameter. The encoding would only be applicable to the actual content. The error is not in the content but the content is not correct if the response header is blank an the content (i.e. state(body) shows up as a metadata item. If no one can think of a reason not to read until you get to a non-blank response header line then as a matter of robustness this code should be corrected as I've indicated.
- login: "cwjolly"
- mimetype: "text/plain"
- username: "cwjolly"