Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3284)

Unified Diff: chrome/browser/ssl/chrome_expect_ct_reporter.cc

Issue 2365353004: Add Content-Type header to net::ReportSender reports (Closed)
Patch Set: make content type a required parameter to Send() Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ssl/chrome_expect_ct_reporter.cc
diff --git a/chrome/browser/ssl/chrome_expect_ct_reporter.cc b/chrome/browser/ssl/chrome_expect_ct_reporter.cc
index 297ecdc138e3e3235933c15e50e2498d0cb4c027..f0b81f8d31dc02791348445321a4cdfeffca395e 100644
--- a/chrome/browser/ssl/chrome_expect_ct_reporter.cc
+++ b/chrome/browser/ssl/chrome_expect_ct_reporter.cc
@@ -176,5 +176,5 @@ void ChromeExpectCTReporter::OnExpectCTFailed(
UMA_HISTOGRAM_BOOLEAN("SSL.ExpectCTReportSendingAttempt", true);
- report_sender_->Send(report_uri, serialized_report);
+ report_sender_->Send(report_uri, "application/json", serialized_report);
eroman 2016/09/26 21:14:07 What is your take on using "application/json; char
estark 2016/09/26 23:26:10 Sure, that seems reasonable. Done.
}

Powered by Google App Engine
This is Rietveld 408576698