Commit 66084986 authored by Dietmar Maurer's avatar Dietmar Maurer

avoid warning about uninitialized value

parent e6e3a140
......@@ -164,7 +164,8 @@ sub response {
$reqstate->{log}->{code} = $code;
my $res = "$reqstate->{proto}->{str} $code $msg\015\012";
my $proto = $reqstate->{proto} ? $reqstate->{proto}->{str} : 'HTTP/1.0';
my $res = "$proto $code $msg\015\012";
my $ctime = time();
my $date = HTTP::Date::time2str($ctime);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment