summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Constants.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2014-02-05 23:55:07 +0100
committerDave Lawrence <dlawrence@mozilla.com>2014-02-05 23:55:07 +0100
commite944ebab1ef01993751c75d5fd25ec6b590cb858 (patch)
tree23062bbb8fdd9c52a982883eec2d59091a1eb6d2 /Bugzilla/WebService/Constants.pm
parentdcb75dc1dfaf486c7607beedd81fac65737c8e7f (diff)
downloadbugzilla-e944ebab1ef01993751c75d5fd25ec6b590cb858.tar.gz
bugzilla-e944ebab1ef01993751c75d5fd25ec6b590cb858.tar.xz
Bug 968482 - backport bug 966277 to bmo/4.2 to set default content type if no accept header provided
Diffstat (limited to 'Bugzilla/WebService/Constants.pm')
-rw-r--r--Bugzilla/WebService/Constants.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/WebService/Constants.pm b/Bugzilla/WebService/Constants.pm
index d0ce26caf..c2a6d855c 100644
--- a/Bugzilla/WebService/Constants.pm
+++ b/Bugzilla/WebService/Constants.pm
@@ -256,11 +256,12 @@ use constant XMLRPC_CONTENT_TYPE_WHITELIST => qw(
application/xml
);
+# The first content type specified is used as the default.
use constant REST_CONTENT_TYPE_WHITELIST => qw(
- text/html
- application/javascript
application/json
+ application/javascript
text/javascript
+ text/html
);
sub WS_DISPATCH {