Permalink
Browse files

[backend] also send trailing '0' bytes in 8192 byte boundaries

  • Loading branch information...
1 parent 27a0187 commit adc24a79a3c36e52d5bdec2a9905c4fe36e69c95 @mlschroe mlschroe committed with adrianschroeter Apr 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/backend/BSServer.pm
View
@@ -663,7 +663,7 @@ sub reply_receiver {
$replying = 2 if $chunked;
while(1) {
my $data = BSHTTP::read_data($hdr, 8192);
- last unless $data;
+ last unless defined($data) && $data ne '';
$data = sprintf("%X\r\n", length($data)).$data."\r\n" if $chunked;
swrite($data);
}

0 comments on commit adc24a7

Please sign in to comment.