mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-07-07 13:25:12 +02:00
Exclude body when only 'get' is defined
This commit is contained in:
@@ -553,7 +553,7 @@ namespace WireMock.Server
|
|||||||
Funcs = Map(pm.Funcs)
|
Funcs = Map(pm.Funcs)
|
||||||
}).ToList() : null,
|
}).ToList() : null,
|
||||||
|
|
||||||
Body = new BodyModel
|
Body = methodMatcher?.Methods != null && methodMatcher.Methods.Count(m => m == "get") == 1 ? null : new BodyModel
|
||||||
{
|
{
|
||||||
Matcher = bodyMatcher != null ? Map(bodyMatcher.Matcher) : null,
|
Matcher = bodyMatcher != null ? Map(bodyMatcher.Matcher) : null,
|
||||||
Func = bodyMatcher != null ? Map(bodyMatcher.Func) : null,
|
Func = bodyMatcher != null ? Map(bodyMatcher.Func) : null,
|
||||||
|
|||||||
Reference in New Issue
Block a user