diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-07-03 21:38:38 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-07-07 00:19:20 +0200 |
commit | 6f68125893590fc9de60185f5535bae12adbcb54 (patch) | |
tree | 6d7b2b7885a750826655cf3896d7fd72791623b3 /Bugzilla/CGI.pm | |
parent | e3e2c7c0273499f832ee692ca63620cd8aa8bda1 (diff) | |
download | bugzilla-6f68125893590fc9de60185f5535bae12adbcb54.tar.gz bugzilla-6f68125893590fc9de60185f5535bae12adbcb54.tar.xz |
Bug 1377232 - Revert code from bug 1361890
Diffstat (limited to 'Bugzilla/CGI.pm')
-rw-r--r-- | Bugzilla/CGI.pm | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index 65e36a24f..2402e997b 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -441,20 +441,12 @@ sub header { %headers = ('-type' => shift(@_)); } else { - # we always want headers to be in lower case, to avoid - # for instance -Cache_Control vs. -cache_control. - my %tmp = @_; - foreach my $key (keys %tmp) { - my $lc_key = lc $key; - warn "duplicate header: $key" if exists $headers{$lc_key}; - $headers{$lc_key} = $tmp{$key}; - } + %headers = @_; } if ($self->{'_content_disp'}) { $headers{'-content_disposition'} = $self->{'_content_disp'}; } - $headers{'-cache_control'} //= 'no-cache, no-store, must-revalidate'; if (!$user->id && $user->authorizer->can_login && !$self->cookie('Bugzilla_login_request_cookie')) |