You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the following line shouldn't call MatchBehaviourHelper.Convert() again as it is already called for each Matcher. Other RequestMessage***Matcher's do not call MatchBehaviourHelper.Convert() before returning.
Given the following example taken from the docs. The expected behavior is that only an Unauthorized response is returned when the header api-key is missing from the http request.
Describe the bug
Following the Reversing the match behaviour with MatchBehaviour.RejectOnMatch
example the reponse will always be
Unauthorized
even if a correct header is added on the request.I believe the following line shouldn't call
MatchBehaviourHelper.Convert()
again as it is already called for each Matcher. Other RequestMessage***Matcher's do not callMatchBehaviourHelper.Convert()
before returning.WireMock.Net/src/WireMock.Net/Matchers/Request/RequestMessageHeaderMatcher.cs
Line 138 in be4b0ad
Expected behavior:
Given the following example taken from the docs. The expected behavior is that only an
Unauthorized
response is returned when the headerapi-key
is missing from the http request.Other related info
Since WireMock.Net v1.5.0.
The text was updated successfully, but these errors were encountered: