C#C
C#15mo ago
20 replies
Bloomie

HTTPClient 'Host' header is not sent when 'DefaultRequestVersion' is set to 'Version(2, 0)'

When I specify 'Host' header it is not being sent when I am trying to use HTTP/2 request version. It is sent when I use HTTP/1.1 but I need to make HTTP/2 requests.
What do I need to do to achieve that?
I am using dotnet 8.
Was this page helpful?