mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-27 19:27:42 +02:00
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:
committed by
Stef Heyenrath
parent
47e599214f
commit
ceb6596823
@@ -67,7 +67,7 @@ namespace WireMock.Transformers
|
|||||||
switch (original.BodyData.BodyAsJson)
|
switch (original.BodyData.BodyAsJson)
|
||||||
{
|
{
|
||||||
case JObject bodyAsJObject:
|
case JObject bodyAsJObject:
|
||||||
jToken = bodyAsJObject;
|
jToken = bodyAsJObject.DeepClone();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Array bodyAsArray:
|
case Array bodyAsArray:
|
||||||
|
|||||||
Reference in New Issue
Block a user