Fix Null body in handlebar transformation (#442)

This commit is contained in:
Stef Heyenrath
2020-03-17 12:52:43 +00:00
committed by GitHub
parent bde981b522
commit fe4ad50119
3 changed files with 25 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ namespace WireMock.Transformers
var template = new { request = requestMessage };
switch (original.BodyData.DetectedBodyType)
switch (original.BodyData?.DetectedBodyType)
{
case BodyType.Json:
TransformBodyAsJson(handlebarsContext.Handlebars, template, original, responseMessage);