NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item9045: Should we really allow the web server to fill in a 200 Status?
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Normal |
Closed |
Engine |
|
|
by not setting the status explicitly (and defaulting to an error condition), we run the 'risk' of sending a 200 code even when there is an unexpected error.
I propose to change this
only in
DEBUG mode -
500 perhaps.
--
SvenDowideit - 21 May 2010
sub new {
my $proto = shift;
my $class = ref($proto) || $proto;
my $this = {
status => undef, #web server fills in 200 if status is not set
headers => {},
body => undef,
charset => 'ISO-8859-1',
cookies => [],
startedPrinting => 0,
};
#SMELL: default to 500 in debug modeso we can shake out the missing Status's
$this->{status} = 500 if DEBUG;
return bless $this, $class;
}
--
SvenDowideit - 21 May 2010
Agreed.
--
CrawfordCurrie - 22 May 2010