Fix Null body in handlebar transformation (#442)

This commit is contained in:
Stef Heyenrath authored and GitHub committed 2020-03-17 13:52:43 +01:00
1 parent bde981b522
commit fe4ad50119
3 files changed
+25 -5

No files matched your search

@@ -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);