Bio-Das
view release on metacpan or search on metacpan
Das/Request.pm view on Meta::CPAN
unless $gzip_magic == GZIP_MAGIC;
return $self->error("506 Data decompression failure (unknown compression method)")
unless $gzip_method == Z_DEFLATED;
substr($cd,0,10) = ''; # truncate the rest
# handle embedded comments that proceed deflated stream
# note that we do not correctly buffer here, but assume
# that we've got it all. We don't bother doing this right,
# because the filename field is not usually present in
# the on-the-fly streaming done by HTTP servers.
if ($comment == 8 or $comment == 10) {
my ($fname) = unpack("Z*",$cd);
substr($cd,0,(length $fname)+1) = '';
}
$compressed_data = $cd;
delete $self->{p_gzip_header};
$self->{p_i} = inflateInit(-WindowBits => -MAX_WBITS() ) or return;
}
( run in 0.248 second using v1.01-cache-2.11-cpan-4d50c553e7e )