diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-05-21 17:38:41 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-06-28 22:41:56 +0200 |
commit | 3517d8a6687cd37cb8c9009a78f16071d652254a (patch) | |
tree | 135535be087ee773e710e0c6d762283a3dfbb902 /Bugzilla/CGI.pm | |
parent | 873074873fe5e27e853e5ce3d83b078280a29c2a (diff) | |
download | bugzilla-3517d8a6687cd37cb8c9009a78f16071d652254a.tar.gz bugzilla-3517d8a6687cd37cb8c9009a78f16071d652254a.tar.xz |
almost working
Diffstat (limited to 'Bugzilla/CGI.pm')
-rw-r--r-- | Bugzilla/CGI.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index d43a26eab..2dedbc5f3 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -561,10 +561,9 @@ sub header { } } my $headers = $self->SUPER::header(%headers) || ''; - warn "if (". $self->server_software." eq 'Bugzilla::Quantum::Plugin::Glue') {"; if ($self->server_software eq 'Bugzilla::Quantum::Plugin::Glue') { my $c = Bugzilla->request_cache->{mojo_controller}; - $c->res->headers(Mojo::Headers->new->parse($headers)) if $headers; + $c->res->headers->parse($headers); return ''; } else { @@ -671,10 +670,12 @@ sub send_cookie { sub redirect { my $self = shift; $self->{bz_redirecting} = 1; - warn "redirect: @_\n"; + use Carp; + carp "redirect @_\n"; if ($self->server_software eq 'Bugzilla::Quantum::Plugin::Glue') { my $c = Bugzilla->request_cache->{mojo_controller}; - $c->redirect_to(@_); + $self->SUPER::redirect(@_); + $c->redirect_to($c->res->headers->location); return ''; } else { |