Hello, Tomcat automatically adds header Transfer-Encoding: chunked if on http 1.1, the response code supports body and there is no Connection: Close header (Tomcat 9's code - https://github.com/apache/tomcat/blob/372f3cefe6225b58fcdae7c344d81396b8e08570/java/org/apache/coyote/http11/Http11Processor.java#L935 ). However, if the application has already set this header, then the header gets duplicated. There is no check if the header is already present. Is this intended behavior?
Kind regards, Lazar