Ignore:
Timestamp:
12/02/08 12:49:15 (3 years ago)
Author:
CrawfordCurrie
Message:

Item139: removed oops redirect for error reports. Fixed status header in HTTP responses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/lib/Foswiki/Engine/CGI.pm

    r1078 r1127  
    177177 
    178178    $this->SUPER::finalizeHeaders( $res, $req ); 
     179    # make sure we always generate a status for the response 
     180    print 'Status: '.$res->status() 
     181      if ($res->status() && !defined($res->headers->{status})); 
    179182    foreach my $header ( keys %{ $res->headers } ) { 
    180183        print $header . ': ' . $_ . $this->CRLF 
Note: See TracChangeset for help on using the changeset viewer.