HttpClient: How to remove charset from Content-Type header

added by DotNetKicks
5/23/2019 3:39:17 AM

286 Views

I was writing client library for one online service and faced situation where I had to remove charset definition from Content-Type header. It was like content type is application/json or response is 415 "Unsupported media type". I was using HttpClient class to communicate with service and without additional efforts charset doesn't go away.


0 comments