hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21378] - Transfer-Encoding: identity not supported + possible patch
Date Mon, 07 Jul 2003 19:30:38 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21378>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21378

Transfer-Encoding: identity not supported + possible patch





------- Additional Comments From eric@tibco.com  2003-07-07 19:30 -------
A good catch, but I don't think the suggested patch is quite right, as it
doesn't compute the content length if the transferEncodingHeader is specified as
identity.

I think rearranging the two cases, something like this:

if (transferEncoding == null ||
  "identity".equalsIgnoreCase(transferEncoding.getValue() )) {

 ... do what is currently the second case
}
else if ("chunked".equalsIgnoreCase(transferEncodingHeader.getValue() ) {
  ... do what is currently in the first case
}
else {
  LOG.warn("Unexpected transfer encoding");
}

might work better.  Since I don't have the indicated servers handy, perhaps the
submitter can try the suggested rearrangement?

Mime
View raw message