]> git.tdb.fi Git - libs/net.git/commit
Reject HTTP messages starting with a linefeed
authorMikko Rasa <tdb@tdb.fi>
Fri, 9 Dec 2022 17:54:16 +0000 (19:54 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 9 Dec 2022 17:55:42 +0000 (19:55 +0200)
commit363778f74fba9d9b85980df0590f8106dfd0a6b0
treee96def0212b7ceb76b9d11184e4e0f3af8972252
parent7f76c3ab1be32526229f5137a59a9dc1ebfeb3e3
Reject HTTP messages starting with a linefeed

It would make str[lf-1] invalid.  Also ignore the carriage return at the
end of the first line when parsing a response.
source/http/request.cpp
source/http/response.cpp