diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-05-22 02:54:58 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-06-28 22:41:57 +0200 |
commit | e216176239965bb5bd98a0008fd8c71b14ee9624 (patch) | |
tree | ba7e201ba6ba4c530e77574e0cb2796b46841e43 /Bugzilla/CGI.pm | |
parent | f2f708f6985dd3a7c51869c0dda5791ca239d248 (diff) | |
download | bugzilla-e216176239965bb5bd98a0008fd8c71b14ee9624.tar.gz bugzilla-e216176239965bb5bd98a0008fd8c71b14ee9624.tar.xz |
almost everything works
Diffstat (limited to 'Bugzilla/CGI.pm')
-rw-r--r-- | Bugzilla/CGI.pm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index 99957c59c..b38c248a4 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -601,11 +601,18 @@ sub header { } my $headers = $self->SUPER::header(%headers) || ''; if ($self->server_software eq 'Bugzilla::Quantum::CGI') { - my $c = $Bugzilla::C; + my $c = $Bugzilla::Quantum::CGI::C; $c->res->headers->parse($headers); - if ($c->res->headers->status =~ /^([0-9]+)/) { + my $status = $c->res->headers->status; + if ($status && $status =~ /^([0-9]+)/) { $c->res->code($1); } + elsif ($c->res->headers->location) { + $c->res->code(302); + } + else { + $c->res->code(200); + } return ''; } else { |