Subject: | LWP mirror() and mod_gzip compression |
I am reporting on behalf of the programmers on the OpenStreetMap.org
project; I have not reproduced locally.
They report that enabling mod_gzip for server side compression on their
huge and 95% compressible XML files resulted in LWP's mirror() saving
the gzipped format locally rather than having the transmission encoding
decoded. (Quite reasonably the XML parser chokes on a UTF error thereafter.)
Workarounds are either have caller of the LWP UA request
forced-compression, or switch from mirror() to get() and then use
decoded_content().
I would expect a middle ground of accepting and decoding gz without
requiring it to be possible.
Is this a bug in libwww ignoring mod_gzip's selected encoding, or in
mod_gzip picking an unexpected encoding by ignoring the UA's restrictive
accept list?
One of the reportering devs reports - apm_: my version of perl is "This
is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi" and LWP is
"This is libwww-perl-5.812" (Ubuntu Hardy)
if more info is needed, if I can inquire further or attempt a minimal
reproducible case.