From 7762aa25ee7c2789061c775d3c1ad518dfd3163b Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Fri, 22 Jun 2018 00:05:18 -0400 Subject: try fixing this again --- Bugzilla/Error.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Error.pm') 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); + } } } -- cgit v1.2.3-24-g4f1b