Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
return response;
}

private static async Task WriteContentAsync(HttpContent content, CancellationToken cancellationToken = default)
private static async Task WriteContentAsync(HttpContent? content, CancellationToken cancellationToken = default)
{
if (content != null)
{
Debug.WriteLine($"[HTTP] >>> {await content.ReadAsStringAsync(cancellationToken)}");
}
Debug.Assert(content != null, "Request/response content should never be null here.");
Debug.WriteLine($"[HTTP] >>> {await content.ReadAsStringAsync(cancellationToken)}");
}
}
Loading