diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-05-21 04:00:08 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-06-28 22:41:56 +0200 |
commit | 889d8ad22855191773dd45e67272650d0c00f502 (patch) | |
tree | d1c9beb3b9a6aed4997e0596fc5cf178a56284b4 /Bugzilla/CGI.pm | |
parent | f5a81daeeb16c6f64475f3a48b8ea5eb0ec84c9b (diff) | |
download | bugzilla-889d8ad22855191773dd45e67272650d0c00f502.tar.gz bugzilla-889d8ad22855191773dd45e67272650d0c00f502.tar.xz |
cool stuff
Diffstat (limited to 'Bugzilla/CGI.pm')
-rw-r--r-- | Bugzilla/CGI.pm | 10 |
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 { |