From 87b4b7dbb78db9f6e9908603a7d37c4332b42149 Mon Sep 17 00:00:00 2001 From: Brandon Sterne Date: Wed, 9 Jun 2010 09:48:21 -0700 Subject: [PATCH] Bug 569610 - fix CSP report Content-Type, r=sstamm --- content/base/src/contentSecurityPolicy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/base/src/contentSecurityPolicy.js b/content/base/src/contentSecurityPolicy.js index a8fc9d09d2c4..3269847bba06 100644 --- a/content/base/src/contentSecurityPolicy.js +++ b/content/base/src/contentSecurityPolicy.js @@ -287,7 +287,7 @@ ContentSecurityPolicy.prototype = { try { req.open("POST", uris[i], true); - req.setRequestHeader('Content-Type', 'application/xml'); + req.setRequestHeader('Content-Type', 'application/json'); req.upload.addEventListener("error", failure, false); req.upload.addEventListener("abort", failure, false); //req.channel.loadFlags |= Ci.nsIRequest.LOAD_BYPASS_CACHE;