Skip to content

Commit

Permalink
fix StatusHost RespondJsonAsync method (#5622)
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryImMouse authored Jan 21, 2025
1 parent aa8fe8a commit d818c5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Robust.Server/ServerStatus/StatusHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ public async Task RespondJsonAsync(object jsonData, HttpStatusCode code = HttpSt
{
RespondShared();

_context.Response.StatusCode = (int)code;
_context.Response.ContentType = "application/json";

await JsonSerializer.SerializeAsync(_context.Response.OutputStream, jsonData);
Expand Down

0 comments on commit d818c5a

Please sign in to comment.