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

Unified Diff: chrome/browser/safe_browsing/permission_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/safe_browsing/permission_reporter.cc
diff --git a/chrome/browser/safe_browsing/permission_reporter.cc b/chrome/browser/safe_browsing/permission_reporter.cc
index b03f212370463d4a39955072da3e0bfbd4311bf5..fee2d359fec79990a60a5458c4382a2d4849d5d7 100644
--- a/chrome/browser/safe_browsing/permission_reporter.cc
+++ b/chrome/browser/safe_browsing/permission_reporter.cc
@@ -170,6 +170,7 @@ void PermissionReporter::SendReport(const PermissionReportInfo& report_info) {
std::string serialized_report;
BuildReport(report_info, &serialized_report);
permission_report_sender_->Send(GURL(kPermissionActionReportingUploadUrl),
+ "application/octet-stream",
serialized_report);
}

Powered by Google App Engine
This is Rietveld 408576698