更新时间:2022-06-15 22:15:44
有一个看的HttpContentHeaders.ContentType物业:
response.Content.Headers.ContentType = new MediaTypeHeaderValue("text/plain");
if (response.Content == null)
{
response.Content = new StringContent("");
// The media type for the StringContent created defaults to text/plain.
}