diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2014-02-05 23:55:07 +0100 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2014-02-05 23:55:07 +0100 |
commit | e944ebab1ef01993751c75d5fd25ec6b590cb858 (patch) | |
tree | 23062bbb8fdd9c52a982883eec2d59091a1eb6d2 /Bugzilla/WebService/Constants.pm | |
parent | dcb75dc1dfaf486c7607beedd81fac65737c8e7f (diff) | |
download | bugzilla-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.pm | 5 |
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 { |