View | Details | Raw Unified | Return to bug 29420
Collapse All | Expand All

(-)a/errors/401.pl (-1 / +1 lines)
Lines 38-43 $template->param ( Link Here
38
);
38
);
39
my $status = '401 Unauthorized';
39
my $status = '401 Unauthorized';
40
if ( any { /(^psgi\.|^plack\.)/i } keys %ENV ) {
40
if ( any { /(^psgi\.|^plack\.)/i } keys %ENV ) {
41
    $status = '200 OK';
41
    $status = '401 Unauthorized';
42
}
42
}
43
output_with_http_headers $query, $cookie, $template->output, 'html', $status;
43
output_with_http_headers $query, $cookie, $template->output, 'html', $status;
(-)a/opac/errors/401.pl (-2 / +1 lines)
Lines 39-44 $template->param ( Link Here
39
);
39
);
40
my $status = '401 Unauthorized';
40
my $status = '401 Unauthorized';
41
if ( any { /(^psgi\.|^plack\.)/i } keys %ENV ) {
41
if ( any { /(^psgi\.|^plack\.)/i } keys %ENV ) {
42
    $status = '200 OK';
42
    $status = '401 Unauthorized';
43
}
43
}
44
output_with_http_headers $query, $cookie, $template->output, 'html', $status;
44
output_with_http_headers $query, $cookie, $template->output, 'html', $status;
45
- 

Return to bug 29420