Fix javadoc. Fixes gh-1268.

This commit is contained in:
Olga Maciaszek-Sharma
2019-08-27 14:13:44 +02:00
parent 0046d60ce5
commit 2084b0a4eb

View File

@@ -188,9 +188,9 @@ public class NettyRoutingFilter implements GlobalFilter, Ordered {
&& filteredResponseHeaders
.containsKey(HttpHeaders.CONTENT_LENGTH)) {
// It is not valid to have both the transfer-encoding header and
// the content-length header
// remove the transfer-encoding header in the response if the
// content-length header is presen
// the content-length header.
// Remove the transfer-encoding header in the response if the
// content-length header is present.
response.getHeaders().remove(HttpHeaders.TRANSFER_ENCODING);
}