var res = Request.CreateResponse(HttpStatusCode.OK, file);
res.Content.Headers.ContentType = new MediaTypeHeaderValue("text/html"); ;
return res;
C# WEB API ApiController 修改response header contentType
最新推荐文章于 2024-05-13 14:23:51 发布
var res = Request.CreateResponse(HttpStatusCode.OK, file);
res.Content.Headers.ContentType = new MediaTypeHeaderValue("text/html"); ;
return res;