Closed zijianhuang closed 6 years ago
It will be up to the application programmers to either alter the Accept headers of HttpClient, or alter the behavior of .NET Core Web API. For example:
httpClient = new System.Net.Http.HttpClient();
httpClient.DefaultRequestHeaders
.Accept
.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));
StringAsString option
as described at https://github.com/aspnet/Mvc/issues/4945
And the content type becomes text/plain, rather than json