Improper handling of HTTP Expect: 100-continue
header for POST requests with bodies
#1126
Labels
bug
Something isn't working
Describe the bug
When Mockoon proxy server receives an HTTP POST request with
Expect: 100-continue
header and a body from the client, it does not respond with anHTTP 100
response. This prevents the client from sending the actual POST request with body, and causes the proxy call to fail with a timeout.To Reproduce
To reproduce the current behavior
http://www.google.com
will suffice).Expect: 100-continue
header:curl -v http://127.0.0.1:3000/ -H 'Expect: 100-continue' -X POST -d '{"foo": "bar"}'
To work around the problem and produce the desired behavior
Expect: 100-continue
header:curl -v http://127.0.0.1:3000/ -H 'Expect: 100-continue' -X POST -d '{"foo": "bar"}'
HTTP 100
response, and the client will send the POST request (which will result in an error, because the upstream doesn't allow POST requests).Mockoon version:
6.1.0, 4.1.0
OS / OS version:
macOS 13.x, Windows 10, Ubuntu 22.04
The text was updated successfully, but these errors were encountered: