* Lower priority from Proxy mappings

* Fix codefactor

* extra tests

* #205

* Fix test for linux

* `c:\temp\x.json` fix

* Extra tests

* more tests

* more tests

* codefactor

* #200

* refactor

* refactor

* tests
This commit is contained in:
Stef Heyenrath
2018-09-22 08:41:24 +02:00
committed by GitHub
parent 0c25ab413d
commit f358f13c08
135 changed files with 11939 additions and 4506 deletions

View File

@@ -1,4 +1,5 @@
using System.Linq;
using System;
using System.Linq;
using JetBrains.Annotations;
using WireMock.Validation;
@@ -26,7 +27,7 @@ namespace WireMock.Matchers.Request
Check.NotNull(methods, nameof(methods));
_matchBehaviour = matchBehaviour;
Methods = methods.Select(v => v.ToLower()).ToArray();
Methods = methods;
}
/// <inheritdoc cref="IRequestMatcher.GetMatchingScore"/>
@@ -38,7 +39,7 @@ namespace WireMock.Matchers.Request
private double IsMatch(RequestMessage requestMessage)
{
return MatchScores.ToScore(Methods.Contains(requestMessage.Method));
return MatchScores.ToScore(Methods.Contains(requestMessage.Method, StringComparer.OrdinalIgnoreCase));
}
}
}