forked from wiremock/wiremock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create request entity if content-length is set (wiremock#1872)
To enable valid POST requests without a body, an empty entity is required. Otherwise, the proxy request will not include the header content-length. Additionally, the content-type will only be set if it is already present in the originalRequest. This prevents a new, additional header from being set. Signed-off-by: Christian von Atzigen <christian.vonatzigen@mobi.ch>
- Loading branch information
1 parent
6728eb7
commit f833060
Showing
2 changed files
with
72 additions
and
4 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