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);
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