mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-09 18:33:33 +02:00
Add setting to skip saving the string-response in the logging when using WithBody(Func...) (#828)
* Add extra unit-test for Response WithBody (dynamic code) * DoNotSaveDynamicResponseInLogEntry * update SettingsModel * fix * .
This commit is contained in:
@@ -21,7 +21,8 @@ public partial class Response
|
||||
{
|
||||
DetectedBodyType = BodyType.String,
|
||||
BodyAsString = bodyFactory(req),
|
||||
Encoding = encoding ?? Encoding.UTF8
|
||||
Encoding = encoding ?? Encoding.UTF8,
|
||||
IsFuncUsed = "Func<IRequestMessage, string>"
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -37,7 +38,8 @@ public partial class Response
|
||||
{
|
||||
DetectedBodyType = BodyType.String,
|
||||
BodyAsString = await bodyFactory(req).ConfigureAwait(false),
|
||||
Encoding = encoding ?? Encoding.UTF8
|
||||
Encoding = encoding ?? Encoding.UTF8,
|
||||
IsFuncUsed = "Func<IRequestMessage, Task<string>>"
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user