ok2c commented on code in PR #425:
URL:
https://github.com/apache/httpcomponents-core/pull/425#discussion_r1311380711
##########
httpcore5/src/main/java/org/apache/hc/core5/http/message/MessageSupport.java:
##########
@@ -151,6 +152,11 @@ public static void addContentEncodingHeader(final
HttpMessage message, final Ent
}
public static void addTrailerHeader(final HttpMessage message, final
EntityDetails entity) {
+ // Ensure using chunked transfer encoding
Review Comment:
@arturobernalg Please, do not. This is very wrong on many levels. First off
`Transfer-Encoding` value is a not a single token, it is a comma delimited
sequence, like `this, that, chunk. Secondly off, this is absolutely the wrong
place to enforce the check. Thirdly it is not even necessary because the
`*tContent` protocol interceptors already take care of.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]