Revert "Fix typo when getting content-length"
Feature, not typo... prevents comparison with undefined warning.
This reverts commit ad1a0ea33d.
This commit is contained in:
+1
-1
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user