diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-05-21 23:35:39 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-06-28 22:41:57 +0200 |
commit | 22ee1570249f5382cecbaa44f57f5fdc96e2b02a (patch) | |
tree | 999f6c599aaf963ccbb10e8eb23f85443a2e4fd0 /Bugzilla/CGI.pm | |
parent | 09c70a582658841bc9dfa758a20bbf6fb95383a7 (diff) | |
download | bugzilla-22ee1570249f5382cecbaa44f57f5fdc96e2b02a.tar.gz bugzilla-22ee1570249f5382cecbaa44f57f5fdc96e2b02a.tar.xz |
more working
Diffstat (limited to 'Bugzilla/CGI.pm')
-rw-r--r-- | Bugzilla/CGI.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index 1e070290e..8fae0c424 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -601,8 +601,11 @@ sub header { } my $headers = $self->SUPER::header(%headers) || ''; if ($self->server_software eq 'Bugzilla::Quantum::CGI') { - my $c = Bugzilla->request_cache->{mojo_controller}; + my $c = $Bugzilla::C; $c->res->headers->parse($headers); + if ($c->res->headers->status =~ /^([0-9]+)/) { + $c->res->code($1); + } return ''; } else { @@ -712,7 +715,7 @@ sub redirect { use Carp; carp "redirect @_\n"; if ($self->server_software eq 'Bugzilla::Quantum::CGI') { - my $c = Bugzilla->request_cache->{mojo_controller}; + my $c = $Bugzilla::C; $self->SUPER::redirect(@_); $c->redirect_to($c->res->headers->location); return ''; |