Bug 1192840 - Fix CSP report content-type. r=ckerschb

This commit is contained in:
Matt Robenolt 2016-04-14 12:51:31 +02:00
Родитель 6c12520100
Коммит 1d82e1412f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -945,7 +945,7 @@ nsCSPContext::SendReports(nsISupports* aBlockedContentSource,
continue;
}
rv = uploadChannel->SetUploadStream(sis, NS_LITERAL_CSTRING("application/json"), -1);
rv = uploadChannel->SetUploadStream(sis, NS_LITERAL_CSTRING("application/csp-report"), -1);
NS_ENSURE_SUCCESS(rv, rv);
// if this is an HTTP channel, set the request method to post