From b4743936b010c6acfa497dc6ce96ef849ef94bfa Mon Sep 17 00:00:00 2001 From: James Laird Date: Sun, 17 Apr 2011 12:01:01 +1000 Subject: [PATCH] Revert "Fix typo when getting content-length" Feature, not typo... prevents comparison with undefined warning. This reverts commit ad1a0ea33d266a27ce69de998bd84d55da6b6690. --- shairport.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shairport.pl b/shairport.pl index a7d00297..07401fe5 100755 --- a/shairport.pl +++ b/shairport.pl @@ -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!