fixes for Cookie and Header Reject on Match (#423)

This commit is contained in:
Stef Heyenrath
2020-02-22 11:07:45 +01:00
committed by GitHub
parent e6bcd625f7
commit 69488ced5f
13 changed files with 358 additions and 160 deletions

View File

@@ -108,7 +108,7 @@ namespace WireMock.Net.Tests.RequestMatchers
// Assign
var headers = new Dictionary<string, string[]> { { "h", new[] { "x" } } };
var requestMessage = new RequestMessage(new UrlDetails("http://localhost"), "GET", "127.0.0.1", null, headers);
var matcher = new RequestMessageHeaderMatcher("h", new ExactMatcher("x"));
var matcher = new RequestMessageHeaderMatcher(MatchBehaviour.AcceptOnMatch, "h", false, new ExactMatcher("x"));
// Act
var result = new RequestMatchResult();