完善功能

This commit is contained in:
2025-09-22 15:50:45 +08:00
parent 365cd2397a
commit 3c7fe1e9e0
5 changed files with 14 additions and 3 deletions

View File

@@ -159,6 +159,7 @@ namespace 电子展板.Controller
}
ActionResult response = new ActionResult(HttpStatusCode.OK);
response.Content = new ByteArrayContent(bytes);
response.Content.Headers.ContentEncoding.Add("utf-8");
response.Content.Headers.ContentType = new MediaTypeHeaderValue(contentType);
response.Content.Headers.ContentLength = bytes.Length;
return response;