}
}
- # NB 26.11.23 for (my $i=0;$i<@_-1;$i++)
- # NB 26.11.23 {
- # NB 26.11.23 next if $_[$i] ne '-type';
- # NB 26.11.23 #$status = $_[$i+1];
- # NB 26.11.23 #splice(@_,$i,2);
- # NB 26.11.23 }
-
my @head = ();
push @head,&CGI::header(@p);
- #unshift @head,($ENV{SERVER_PROTOCOL}||'HTTP/1.1')." $status"
- unshift @head,header_stats($status)
- if $status and @head and !&CGI::nph;
+ if ($status and @head and !&CGI::nph)
+ {
+ $status = $self->header_status($status);
+ $status =~ s/\s+$//;
+ unshift @head,$status;
+ }
return join($CGI::CRLF,@head);
}