Changeset 17717

Show
Ignore:
Timestamp:
08/16/08 20:14:32 (5 years ago)
Author:
tokuhirom
Message:

escape

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/HTTP-Engine/trunk/lib/HTTP/Engine/ResponseFinalizer.pm

    r17716 r17717  
    1414 
    1515    # Content-Length 
    16     $res->content_length(0); 
    1716    if ($res->body) { 
    1817        # get the length from a filehandle 
     
    2625            $res->content_length(bytes::length($res->body)); 
    2726        } 
     27    } else { 
     28        $res->content_length(0); 
    2829    } 
    2930 
     
    4041 
    4142    # HTTP/1.1's default Connection: close 
    42     if ($res->protocol && $res->protocol =~ m!1.1! && !!!$res->header('Connection')) { 
     43    if ($res->protocol && $res->protocol =~ m!1\.1! && !!!$res->header('Connection')) { 
    4344        $res->header( Connection => 'close' ); 
    4445    }