Fix for MODAPP-27 from Bret McDanel.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5700 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-09-11 22:33:08 +00:00
parent d40c1d2c79
commit 6f0c169c7d
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ sub readhash($;$) {
} }
if ($h->{'content-length'}) { if ($h->{'content-length'}) {
if(! defined $h->{body}) { $h->{body}=0; }
while(length($h->{body}) < $h->{'content-length'}) { while(length($h->{body}) < $h->{'content-length'}) {
my $buf; my $buf;
recv $s, $buf, $h->{'content-length'} - length($h->{body}), 0; recv $s, $buf, $h->{'content-length'} - length($h->{body}), 0;