Skip to content

Commit

Permalink
chore: formatted curl request for powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpop-zengenti committed Oct 22, 2024
1 parent 0ccd3a4 commit 41b3175
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ internal static string CreateCurlCallString(RouteInfo routeInfo, string? host =
curlUri.Host = host;
}

var curlString = $"curl -k '{curlUri}' `\n";
var curlString = $"curl -k '{curlUri}'";
var disallowedHeaders = EndpointRequestService.DisallowedRequestHeaders;
foreach (var header in routeInfo.Headers.Values)
{
Expand All @@ -51,7 +51,7 @@ internal static string CreateCurlCallString(RouteInfo routeInfo, string? host =
}

var headerValue = header.Value.Count() == 1 ? header.Value.First() : string.Join("; ", header.Value);
curlString += $" -H '{header.Key}: {headerValue}' `\n";
curlString += $" `\n -H '{header.Key}: {headerValue}'";
}

return curlString;
Expand Down

0 comments on commit 41b3175

Please sign in to comment.