summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2016-05-02 15:43:37 +0200
committerDavid Lawrence <dkl@mozilla.com>2016-05-02 15:43:37 +0200
commit0b25c5c2c1c95874a50f6163649daa5e068aaf81 (patch)
treeb2a6c67d5ad459de4f8f700e172ce1a53106ce42 /Bugzilla
parentacf611b178afd1bdeed8383a9647bc73a4e10d05 (diff)
downloadbugzilla-0b25c5c2c1c95874a50f6163649daa5e068aaf81.tar.gz
bugzilla-0b25c5c2c1c95874a50f6163649daa5e068aaf81.tar.xz
Bug 1269252 - Using callback parameter with REST API causes read-only accessor error in Bugzilla/API/Server.pm
r=dylan
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/API/Server.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/Bugzilla/API/Server.pm b/Bugzilla/API/Server.pm
index e3bf1ea71..a423f2f42 100644
--- a/Bugzilla/API/Server.pm
+++ b/Bugzilla/API/Server.pm
@@ -41,7 +41,7 @@ has api_options => (is => 'rw', default => sub { [] });
has api_params => (is => 'rw', default => sub { {} });
has api_path => (is => 'rw', default => '');
has cgi => (is => 'lazy');
-has content_type => (is => 'lazy');
+has content_type => (is => 'rw', default => 'application/json');
has controller => (is => 'rw', default => undef);
has json => (is => 'lazy');
has load_error => (is => 'rw', default => undef);
@@ -222,10 +222,6 @@ sub _build_cgi {
return Bugzilla->cgi;
}
-sub _build_content_type {
- return 'application/json';
-}
-
sub _build_json {
# This may seem a little backwards to set utf8(0), but what this really
# means is "don't convert our utf8 into byte strings, just leave it as a