| Index: third_party/WebKit/Source/core/loader/PingLoader.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/PingLoader.cpp b/third_party/WebKit/Source/core/loader/PingLoader.cpp
|
| index 6afde83f2368e9eb360675f1a959aa8838089739..e02b49bb2f4ea36d7af47d17bf9217a32685a05c 100644
|
| --- a/third_party/WebKit/Source/core/loader/PingLoader.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/PingLoader.cpp
|
| @@ -523,9 +523,14 @@ void PingLoader::sendViolationReport(LocalFrame* frame,
|
| ViolationReportType type) {
|
| ResourceRequest request(reportURL);
|
| request.setHTTPMethod(HTTPNames::POST);
|
| - request.setHTTPContentType(type == ContentSecurityPolicyViolationReport
|
| - ? "application/csp-report"
|
| - : "application/json");
|
| + switch (type) {
|
| + case ContentSecurityPolicyViolationReport:
|
| + request.setHTTPContentType("application/csp-report");
|
| + break;
|
| + case XSSAuditorViolationReport:
|
| + request.setHTTPContentType("application/xss-auditor-report");
|
| + break;
|
| + }
|
| request.setHTTPBody(std::move(report));
|
| finishPingRequestInitialization(request, frame,
|
| WebURLRequest::RequestContextCSPReport);
|
|
|