[Catalyst] Setting file handle as the response body generates
warnings.
neil.lunn
neil at mylunn.id.au
Wed Nov 20 23:45:14 GMT 2013
On 21/11/2013 4:08 AM, Bill Moseley wrote:
>
> On Wed, Nov 20, 2013 at 7:37 AM, Bill Moseley <moseley at hank.org =
> <mailto:moseley at hank.org>> wrote:
>
>
> On Wed, Nov 20, 2013 at 4:08 AM, neil.lunn <neil at mylunn.id.au
> <mailto:neil at mylunn.id.au>> wrote:
>
> my $length =3D $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 =3D {
> 'Time' =3D> 0,
> 'Flags' =3D> 0,
> 'TextFlag' =3D> 0,
> 'MethodID' =3D> 8,
> 'ExtraField' =3D> [],
> 'CommentFlag' =3D> 0,
> 'Type' =3D> 'rfc1952',
> 'NameFlag' =3D> 0,
> 'ExtraFlags' =3D> 0,
> 'HeaderCRC' =3D> undef,
> 'isMinimalHeader' =3D> 0,
> 'MethodName' =3D> 'Deflated',
> 'ExtraFlag' =3D> 0,
> 'HeaderLength' =3D> 10,
> 'ExtraFieldRaw' =3D> undef,
> 'Comment' =3D> undef,
> 'OsName' =3D> 'Unix',
> 'FingerprintLength' =3D> 2,
> 'HeaderCRCFlag' =3D> 0,
> 'OsID' =3D> 3,
> 'TrailerLength' =3D> 8,
> 'Name' =3D> undef,
> 'Header' =3D> ''
> };
>
> And even if I gzip a file (e.g. $ gzip foo.txt) then the resulting =
> foo.txt.gz has 'ISIZE' =3D> 0,
>
>
>
> -- =
> Bill Moseley
> moseley at hank.org <mailto:moseley at hank.org>
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.u=
k/
> Dev site: http://dev.catalyst.perl.org/
---
This email is free from viruses and malware because avast! Antivirus protec=
tion is active.
http://www.avast.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20131121/80b34=
4a2/attachment.htm
More information about the Catalyst
mailing list