Skip to content

Commit

Permalink
Fix typo when getting content-length
Browse files Browse the repository at this point in the history
  • Loading branch information
erawk committed Apr 16, 2011
1 parent 16c9dcd commit ad1a0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shairport.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit ad1a0ea

Please sign in to comment.