summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Error.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-06-22 06:05:18 +0200
committerDylan William Hardison <dylan@hardison.net>2018-06-28 22:42:02 +0200
commit7762aa25ee7c2789061c775d3c1ad518dfd3163b (patch)
treee2956abb3d1cb050185e28efba19273b59518254 /Bugzilla/Error.pm
parentba5e542b21ee79acc550e79ed4e8c0c0d0c322a2 (diff)
downloadbugzilla-7762aa25ee7c2789061c775d3c1ad518dfd3163b.tar.gz
bugzilla-7762aa25ee7c2789061c775d3c1ad518dfd3163b.tar.xz
try fixing this again
Diffstat (limited to 'Bugzilla/Error.pm')
-rw-r--r--Bugzilla/Error.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/Bugzilla/Error.pm b/Bugzilla/Error.pm
index dcb79cfb2..d3f7c1971 100644
--- a/Bugzilla/Error.pm
+++ b/Bugzilla/Error.pm
@@ -124,7 +124,11 @@ sub _throw_error {
message => $message,
id => $server->{_bz_request_id},
version => $server->version);
- $server->response($server->error_response_header);
+ # if _bz_request_id is set, we're inside the _handle() function
+ # and we don't need to call $server->response.
+ unless ($self->{_bz_request_id}) {
+ $server->response($server->error_response_header);
+ }
}
}