-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't set Transfer-Encoding twice #600
Some proxies such as Traefik will throw an error when the Transfer-Encoding header is present twice. We shouldn't set the header ourselves, but leave that to Tomcat (which also makes sure that the chunking is done correctly). Instead, prevent setting a content length when the response is compressed.
- Loading branch information
1 parent
107396d
commit 7e49aa5
Showing
2 changed files
with
45 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters