mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-23 01:08:49 +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:
|
||||||
@@ -160,4 +160,4 @@ namespace WireMock.Transformers
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user