Fix ResponseMessageTransformer to not replace BodyAsJson in an original message (#261)

Fix ResponseMessageTransformer to not replace BodyAsJson in an original message with transformed results
This commit is contained in:
Alex Kursov authored and Stef Heyenrath committed 2019-03-30 09:33:49 +01:00
1 parent 47e599214f
commit ceb6596823
1 file changed
+2 -2
@@ -67,7 +67,7 @@ namespace WireMock.Transformers
switch (original.BodyData.BodyAsJson)
{
case JObject bodyAsJObject:
jToken = bodyAsJObject;
jToken = bodyAsJObject.DeepClone();
break;
case Array bodyAsArray:
@@ -160,4 +160,4 @@ namespace WireMock.Transformers
};
}
}
}
}