On 21/11/2013 4:08 AM, Bill Moseley wrote:
On Wed, Nov 20, 2013 at 7:37 AM, Bill Moseley <[email protected]
<mailto:[email protected]>> wrote:
On Wed, Nov 20, 2013 at 4:08 AM, neil.lunn <[email protected]
<mailto:[email protected]>> wrote:
my $length = $body->getHeaderInfo
Well, that's helpful. Thanks. Completely missed that in the docs.
Well, except for the actual files I have no ISIZE:
Don't know. I would suspect you have a version issue somewhere. But not
a Catalyst thing. From the Gzip RFC:
<snip>
2.3.1.2. Compliance
A compliant compressor must produce files with correct ID1,
ID2, CM, CRC32, and ISIZE, but may set all the other fields in
the fixed-length part of the header to default values (255 for
OS, 0 for all others). The compressor must set all reserved
bits to zero.
</snip>
$VAR1 = {
'Time' => 0,
'Flags' => 0,
'TextFlag' => 0,
'MethodID' => 8,
'ExtraField' => [],
'CommentFlag' => 0,
'Type' => 'rfc1952',
'NameFlag' => 0,
'ExtraFlags' => 0,
'HeaderCRC' => undef,
'isMinimalHeader' => 0,
'MethodName' => 'Deflated',
'ExtraFlag' => 0,
'HeaderLength' => 10,
'ExtraFieldRaw' => undef,
'Comment' => undef,
'OsName' => 'Unix',
'FingerprintLength' => 2,
'HeaderCRCFlag' => 0,
'OsID' => 3,
'TrailerLength' => 8,
'Name' => undef,
'Header' => ''
};
And even if I gzip a file (e.g. $ gzip foo.txt) then the resulting
foo.txt.gz has 'ISIZE' => 0,
--
Bill Moseley
[email protected] <mailto:[email protected]>
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/