diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2014-02-05 22:37:07 +0000 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2014-02-05 22:37:07 +0000 |
commit | eae63571ef63f7ddc9f36219229075a20c012d55 (patch) | |
tree | db2c9ffae90525ee006a779f6f1f4520c6b10246 /Bugzilla/WebService/Constants.pm | |
parent | c5464b5bb7dfece2bad2b8af9eba4d9b6d07d778 (diff) | |
download | bugs-eae63571ef63f7ddc9f36219229075a20c012d55.tar bugs-eae63571ef63f7ddc9f36219229075a20c012d55.tar.gz bugs-eae63571ef63f7ddc9f36219229075a20c012d55.tar.bz2 bugs-eae63571ef63f7ddc9f36219229075a20c012d55.tar.xz bugs-eae63571ef63f7ddc9f36219229075a20c012d55.zip |
Bug 966277 - Bugzilla native REST API should default to application/json if no Accept header was set
r=dkl,a=justdave
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 5d955b96a..4085c2cbd 100644 --- a/Bugzilla/WebService/Constants.pm +++ b/Bugzilla/WebService/Constants.pm @@ -251,11 +251,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 { |