summaryrefslogtreecommitdiffstats
path: root/Bugzilla/CGI.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/CGI.pm')
-rw-r--r--Bugzilla/CGI.pm10
1 files changed, 9 insertions, 1 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm
index 1a191daaa..78037292a 100644
--- a/Bugzilla/CGI.pm
+++ b/Bugzilla/CGI.pm
@@ -560,8 +560,16 @@ sub header {
$headers{'-link'} .= ', <https://www.google-analytics.com>; rel="preconnect"; crossorigin';
}
}
+ my $headers = $self->SUPER::header(%headers) || '';
- return $self->SUPER::header(%headers) || "";
+ if ($self->server_software eq 'Bugzilla::Quantum::Plugin::Glue') {
+ my $c = Bugzilla::request_cache->{mojo_controller};
+ $c->res->headers(Mojo::Headers->parse($headers));
+ return '';
+ }
+ else {
+ return $headers;
+ }
}
sub param {