C
C#6mo ago
Tony Wang

HttpResponseMessage.Content.Header.ContentEncoding is empty

Hello, I am working with the .net HttlClient and have troubles setting up the response message correctly. I use the httpListener to process the request and send the response. To create and send the response I use the HttpListenerContext.Response Object. I set the Content Encoding via HttpListenerContext.Response.Encoding, and write the content to the output stream. I can send requests to my server and they are processes correctly, but the ContentEncoding header is empty in the response message that I receive with my client. I am not sure what I am doing wrong.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server