Chromium Code Reviews
DescriptionAvoid adding invalid headers in AddHeaderFromString
In net::HttpRequestHeaders::AddHeaderFromString(), verify that the
header name and value are valid. If they are not, don't add them (and
log a fatal message on debug builds).
BUG=634225
Committed: https://crrev.com/0753a6f4ffdb5bcd1ff9c4b977f9052878112f42
Cr-Commit-Position: refs/heads/master@{#411556}
Patch Set 1 #
Total comments: 8
Patch Set 2 : Move anonymous namespace. Use string.empty(). #Patch Set 3 : Protect against off-the-end iterators. #Patch Set 4 : Remove IsToken(iterator, iterator) overload #
Total comments: 2
Patch Set 5 : Fix bug in HttpContentDisposition::ConsumeDispositionType #Patch Set 6 : Use StringPiece in HttpContentDisposition::ConsumeDispositionType #Patch Set 7 : Rebase #
Messages
Total messages: 26 (16 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||