summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-06-29 08:28:44 +0200
committerByron Jones <bjones@mozilla.com>2012-06-29 08:28:44 +0200
commitb0e4aea1f3577d7ebbf149b9077d4d1152d03894 (patch)
treea2b4b54f18d3bdb1158f4643eb3ffe7441ff9068 /extensions
parent2eaefe2301feb27594a3db755948fbddb3594838 (diff)
downloadbugzilla-b0e4aea1f3577d7ebbf149b9077d4d1152d03894.tar.gz
bugzilla-b0e4aea1f3577d7ebbf149b9077d4d1152d03894.tar.xz
fix guided content-type (port bmo/4.0 r8049)
Diffstat (limited to 'extensions')
-rw-r--r--extensions/GuidedBugEntry/web/js/guided.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/GuidedBugEntry/web/js/guided.js b/extensions/GuidedBugEntry/web/js/guided.js
index 9e7f19d67..e98237fab 100644
--- a/extensions/GuidedBugEntry/web/js/guided.js
+++ b/extensions/GuidedBugEntry/web/js/guided.js
@@ -197,7 +197,7 @@ var product = {
// grab the product information
this.details = false;
this._loaded = productName;
- YAHOO.util.Connect.setDefaultPostHeader('text/plain; charset=UTF-8');
+ YAHOO.util.Connect.setDefaultPostHeader('application/json; charset=UTF-8');
YAHOO.util.Connect.asyncRequest(
'POST',
'jsonrpc.cgi',
@@ -403,7 +403,7 @@ var dupes = {
ccObject = { remove: [ guided.currentUser ] };
}
- YAHOO.util.Connect.setDefaultPostHeader('text/plain; charset=UTF-8');
+ YAHOO.util.Connect.setDefaultPostHeader('application/json; charset=UTF-8');
YAHOO.util.Connect.asyncRequest(
'POST',
'jsonrpc.cgi',