Navigation Menu

Skip to content

Commit

Permalink
[backend] also send trailing '0' bytes in 8192 byte boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe authored and adrianschroeter committed Apr 18, 2012
1 parent 27a0187 commit adc24a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/BSServer.pm
Expand Up @@ -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);
}
Expand Down

0 comments on commit adc24a7

Please sign in to comment.