classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] Patch: fix Content-Encoding for compressed HTTP respons


From: Tom Tromey
Subject: Re: [cp-patches] Patch: fix Content-Encoding for compressed HTTP responses
Date: 16 Jan 2006 10:52:33 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Anthony" == Anthony Green <address@hidden> writes:

Anthony> I found this while debugging Azureus.  We automatically decompress
Anthony> compressed HTTP responses, but still report them as having compressed
Anthony> content.   This patch removes the Content-Encoding header in these
Anthony> cases.  This appears to be what Sun does in these cases.  Ok?

When I run that case program, if I specify that it should ask for a
gzip encoding, Sun's protocol handler hands back a gzipped stream --
i.e., it does not uncompress.

I think either behavior is correct, since user code has no way of
knowing whether it should have gotten a zipped stream.  But I
wonder... Sun's behavior seems a bit nicer since it allows the option
of not uncompressing, if that is what is wanted.

Also I wonder about throwing an exception if we don't recognize the
content-encoding.  It seems to me that the caller might well recognize
it somehow.

Comments?

Tom




reply via email to

[Prev in Thread] Current Thread [Next in Thread]