From ad1a0ea33d266a27ce69de998bd84d55da6b6690 Mon Sep 17 00:00:00 2001 From: Ed Lui Date: Sat, 16 Apr 2011 15:14:44 -0400 Subject: [PATCH 1/2] 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 c265892a..5f89b9c5 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! From a8f2cb2fbb7345e6ae6fe636a5714416563c7bb7 Mon Sep 17 00:00:00 2001 From: Ed Lui Date: Sat, 16 Apr 2011 15:15:18 -0400 Subject: [PATCH 2/2] Add instructions for MacPorts --- INSTALL.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 100f8656..d720eceb 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -20,11 +20,12 @@ Perl modules (install from CPAN if needed e.g. `perl -MCPAN -e 'install X'`): MacOSX: * install XCode - * install [Homebrew](https://github.com/mxcl/homebrew) + * install [Homebrew](https://github.com/mxcl/homebrew) or [MacPorts](http://www.macports.org/) * type: $ export ARCHFLAGS="-arch x86_64" - $ brew install pkg-config libao + $ brew install pkg-config libao # for [Homebrew](https://github.com/mxcl/homebrew) + $ port install libao # for [MacPorts](http://www.macports.org/) $ make $ perl -MCPAN -e 'install Crypt::OpenSSL::RSA' $ perl -MCPAN -e 'install IO::Socket::INET6'