Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create request entity if content-length is set (#1872) #1873

Merged

Conversation

vonatzigenc
Copy link
Contributor

fixes #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.

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>
@rasklaad
Copy link

rasklaad commented Jun 8, 2022

Is there any chance that this fix will be included in next release?

@Megmeehey
Copy link

[x2 that]

@tomakehurst tomakehurst merged commit f339447 into wiremock:master Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proxy of empty POST requests missing to content-lenght header
4 participants