We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50894e9 commit 6a43b02Copy full SHA for 6a43b02
src/HttpClientToCurl/HttpMessageHandlers/CurlGeneratorHttpMessageHandler.cs
@@ -15,7 +15,7 @@ protected override Task<HttpResponseMessage> SendAsync(
15
var config = _monitorConfig.CurrentValue;
16
if (config.TurnOnAll)
17
{
18
- if (config.ShowOnConsole.TurnOn)
+ if (config.ShowOnConsole?.TurnOn ?? false)
19
20
httpRequestMessage.GenerateCurlInConsole(httpRequestMessage.RequestUri, consoleConfig =>
21
@@ -26,7 +26,7 @@ protected override Task<HttpResponseMessage> SendAsync(
26
});
27
}
28
29
- if (config.SaveToFile.TurnOn)
+ if (config.SaveToFile?.TurnOn ?? false)
30
31
httpRequestMessage.GenerateCurlInFile(httpRequestMessage.RequestUri, fileConfig =>
32
0 commit comments