On Mon, Jan 20, 2003 at 04:53:35PM -0800, Justin Erenkrantz wrote:
...
What happens is that neon is transparently decompressing the response since
it has Content-Encoding: x-gzip in the header. Note that you don't need
mod_deflate triggered (I don't think it would compress twice because it
tries to prevent this). Therefore, Subversion gets a truly corrupt file -
it's uncompressed when it's not really supposed to be.
ne_compress.c line 247 has:
if (ctx-enchdr strcasecmp(ctx-enchdr, gzip) == 0) {
x-gzip matches. Perhaps it'd be nice if we could get neon to only
recognize 'gzip' rather than 'x-gzip.' I don't know if that's legal or not.
Are you sure that is right? That strcasecmp won't match x-gzip.
On the legality: there is a SHOULD requirement in 2616 that x-gzip is
treated equivalent to gzip but if everything else you said is right,
you would seem to have provided a good rationale for *not* treating
x-gzip and gzip the same...
Regards,
joe
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 14 02:04:34 2006