Revert "Fix typo when getting content-length"

Feature, not typo... prevents comparison with undefined warning.
This reverts commit ad1a0ea33d.
This commit is contained in:
James Laird
2011-04-17 12:01:01 +10:00
parent 01d8c09738
commit b4743936b0
+1 -1
View File
@@ -261,7 +261,7 @@ sub conn_handle_request {
my ($fh, $conn) = @_;
my $req = $conn->{req};;
my $clen = $req->header('content-length') || 0;
my $clen = $req->header('content-length') // 0;
if ($clen > 0 && !length($req->content)) {
$conn->{req_need} = $clen;
return; # need more!