Skip to content

Commit a665777

Browse files
committed
The Json result for the file list was not escaped correctly. It was seen as a string with some content...
1 parent 319f0ec commit a665777

File tree

1 file changed

+1
-1
lines changed
  • Source/LocalNetAppChat/LocalNetAppChat.Server

1 file changed

+1
-1
lines changed

Source/LocalNetAppChat/LocalNetAppChat.Server/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
if (!result.IsSuccess)
103103
return Results.BadRequest(result.Error);
104104

105-
return Results.Ok(JsonSerializer.Serialize(result.Value));
105+
return Results.Json(result.Value);
106106
});
107107

108108
app.MapGet("/download", async (HttpRequest _, string key, string filename) =>

0 commit comments

Comments
 (0)