From ad1a0ea33d266a27ce69de998bd84d55da6b6690 Mon Sep 17 00:00:00 2001 From: Ed Lui Date: Sat, 16 Apr 2011 15:14:44 -0400 Subject: [PATCH] Fix typo when getting content-length --- shairport.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shairport.pl b/shairport.pl index c265892a5..5f89b9c5c 100755 --- a/shairport.pl +++ b/shairport.pl @@ -245,7 +245,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!