You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2003/07/07 21:30:38 UTC
DO NOT REPLY [Bug 21378] -
Transfer-Encoding: identity not supported + possible patch
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?