WireMock-Net / WireMock.Net

WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on the functionality from http://WireMock.org, but extended with more functionality.
Apache License 2.0
1.36k stars 200 forks source link

Wiremock does not retrieve content-length on a HEAD request. #950

Closed maoso closed 1 year ago

maoso commented 1 year ago

Using wiremock.net when I do a HEAD request, wiremock does not retrieve the content-length into the header of the response.

If we check the http HEAD method it should to it, https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/HEAD

Ok seems to be duplicated https://github.com/WireMock-Net/WireMock.Net/issues/720 going to close and a second look.

Thank you very much

StefH commented 1 year ago

this will be added in next release

https://github.com/WireMock-Net/WireMock.Net/pull/951