Open RanABI opened 1 month ago
WARNING: sendResponseHeaders: being invoked with a content length for a HEAD request
This is because HEAD requests can not have a body. If you don't set a body, you won't get that message. But it is a warning, it won't fail the test.
Hi team, I am using your Mock-Servers, When mocking an HTTP
HEAD
request, I receive the following error:I see the error's origin is at
MockHttpServer.kt
, in thepactResponseToHttpExchange
function, I guess the exchange is closing before response headers are being sent.My mock is very simple -