Skip to content

Commit

Permalink
Update dotnet/src/webdriver/Remote/HttpCommandExecutor.cs
Browse files Browse the repository at this point in the history
Co-authored-by: codiumai-pr-agent-pro[bot] <151058649+codiumai-pr-agent-pro[bot]@users.noreply.github.com>
  • Loading branch information
nvborisenko and codiumai-pr-agent-pro[bot] authored Sep 28, 2024
1 parent 4c3b2ba commit 063cf0f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dotnet/src/webdriver/Remote/HttpCommandExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,11 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
var responseTask = base.SendAsync(request, cancellationToken);

StringBuilder requestLogMessageBuilder = new();
requestLogMessageBuilder.AppendFormat(">> {0} RequestUri: {1}, Content: {2}, Headers: {3}", request.Method, request.RequestUri, request.Content, request.Headers?.Count());
requestLogMessageBuilder.AppendFormat(">> {0} RequestUri: {1}, Content: {2}, Headers: {3}",
request.Method,
request.RequestUri?.ToString() ?? "null",
request.Content?.ToString() ?? "null",
request.Headers?.Count());

if (request.Content != null)
{
Expand Down

0 comments on commit 063cf0f

Please sign in to comment.