Changeset 17717
- Timestamp:
- 08/16/08 20:14:32 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/HTTP-Engine/trunk/lib/HTTP/Engine/ResponseFinalizer.pm
r17716 r17717 14 14 15 15 # Content-Length 16 $res->content_length(0);17 16 if ($res->body) { 18 17 # get the length from a filehandle … … 26 25 $res->content_length(bytes::length($res->body)); 27 26 } 27 } else { 28 $res->content_length(0); 28 29 } 29 30 … … 40 41 41 42 # 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')) { 43 44 $res->header( Connection => 'close' ); 44 45 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)