HttpClient does not return Content-Type

后端 未结 2 1246
轻奢々
轻奢々 2021-01-13 10:32

I\'m sending a request with HttpClient. Server returns two headers which I want return to client. I run it like this:

 using (var client = new          


        
2条回答
  •  离开以前
    2021-01-13 10:52

    Content_type is part of the Content Headers. So you should use:

    response.Content.Headers;
    

提交回复
热议问题