mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01: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)
|
||||
{
|
||||
case JObject bodyAsJObject:
|
||||
jToken = bodyAsJObject;
|
||||
jToken = bodyAsJObject.DeepClone();
|
||||
break;
|
||||
|
||||
case Array bodyAsArray:
|
||||
@@ -160,4 +160,4 @@ namespace WireMock.Transformers
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user