你的位置: 码友网首页 / 资讯源列表 / HttpClient: How to remove charset from Content-Type header

关于[HttpClient: How to remove charset from Content-Type header]的摘要:

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. Here is how I got charset definition away from Content-Type header.

原文地址: https://gunnarpeipman.com/net/httpclient-remove-charset/

收录时间: 2019-05-24 浏览量: 54 分类: .NET

| 0 收藏 | 0