Skip to content

Commit 19acc01

Browse files
test
1 parent c0d1a23 commit 19acc01

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

P2PBootstrap/Program.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@ public static void Main(string[] args)
188188
app.MapGet("/api/Bootstrap/publicip", async (HttpContext context) =>
189189
{
190190
var headers = context.Request.Headers.ToDictionary(h => h.Key, h => h.Value.ToString());
191-
return Results.Json(headers);
192-
191+
return Results.Text(headers.ToString());
193192

194193
string ip = context.Connection.RemoteIpAddress?.ToString() ?? "Unknown";
195194
return Results.Text(ip, "text/plain");

0 commit comments

Comments
 (0)