Menu

#73 Test crash because project didn't suprt all HTTP/1.1 header.

DS-1.1.2
open
nobody
Transport (2)
5
2006-03-31
2006-03-31
adaher
No

Function HttpConnection::parseHeader() did not
support HTTP/1.1 “100 continue” status:

Function HttpConnection::parseHeader() has to parse
the HTTP header and extract information
like “content-length”, “port”…. But when the server
sends header that contains the “100 continue” status
followed by a blank line, it returns 0 without
getting the content-length and this will make test
crash later.

This function must handle the 100 response correctly
(perhaps by just ignoring it).

Discussion


Log in to post a comment.