Content-Type header not set on Asp .Net.
tdhintz opened this issue · 0 comments
tdhintz commented
The ContentType property must be set instead of the header on ASP .Net 4.7.2, like this or similar:
public void SetHeaderValue(string header, string value)
{
if (header.Equals("content-type", System.StringComparison.OrdinalIgnoreCase))
{
_httpResponse.ContentType = value;
}
else
{
_httpResponse.Headers.Set(header, value);
}
}