Chromium Code Reviews
DescriptionMake net::HttpRequestHeaders::AddHeadersFromString split on NL
Previously, AddHeaderFromString() only split on CRNL
terminators. However, some HTTP servers will treat an individual CR or NL
as a line terminator. This could lead to a difference of interpretation
between what Chrome intended to send and what the server thought it
received.
To avoid this, make AddHeadersFromString split on individual CR and NL
characters.
No code should be calling AddHeadersFromString with individual CR or NL
embedded, so this change should not break anything that was not broken
already.
BUG=634225
TEST=net_unittests
Patch Set 1 #
Messages
Total messages: 9 (6 generated)
|
|||||||||||||||||||||||||||||||||||||