refactor: Do not attempt to log HTTP body if empty

pull/231/head
Robert Dailey 1 year ago
parent d0ff537d06
commit 8060096ba8

@ -45,7 +45,7 @@ public static class FlurlLogging
private static void LogBody(ILogger log, Url url, string direction, HttpMethod method, string? body)
{
if (body is null)
if (string.IsNullOrEmpty(body))
{
return;
}

Loading…
Cancel
Save