Chromium Code Reviews
DescriptionAdd Content-Type header to net::ReportSender reports
Two sites that are opted into OCSP Expect-Staple reporting
(www.dropbox.com, www.caddyserver.com) reported that they were receiving
reports from Chrome with empty request bodies. This turned out to be
their logging code not handling requests with no Content-Type
header. When TransportSecurityState sends JSON violation reports for
HPKP and Expect-Staple, it ought to be sending a Content-Type header of
application/json. Thus, this CL adds a |content_type| parameter to
net::ReportSender::Send() and updates the users of net::ReportSender
(including TransportSecurityState) to set |content_type| appropriately.
BUG=650327
Committed: https://crrev.com/b1716e2e3830aa031dc335b0403913efadb199dd
Cr-Commit-Position: refs/heads/master@{#421459}
Patch Set 1 #Patch Set 2 : update some unit test subclasses #
Total comments: 3
Patch Set 3 : make content type a required parameter to Send() #
Total comments: 6
Patch Set 4 : eroman comments #
Total comments: 9
Patch Set 5 : eroman comment #Messages
Total messages: 40 (24 generated)
|