We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0d1a23 commit 19acc01Copy full SHA for 19acc01
P2PBootstrap/Program.cs
@@ -188,8 +188,7 @@ public static void Main(string[] args)
188
app.MapGet("/api/Bootstrap/publicip", async (HttpContext context) =>
189
{
190
var headers = context.Request.Headers.ToDictionary(h => h.Key, h => h.Value.ToString());
191
- return Results.Json(headers);
192
-
+ return Results.Text(headers.ToString());
193
194
string ip = context.Connection.RemoteIpAddress?.ToString() ?? "Unknown";
195
return Results.Text(ip, "text/plain");
0 commit comments