diff options
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')) |