Skip to content

CurlHandler empty header values not being sent #15748

@martinbooth

Description

@martinbooth

You can use the following piece of code to test this:

var client = new HttpClient();
client.DefaultRequestHeaders.Add("No-value", "");
client.DefaultRequestHeaders.Add("With-value", "value");

await client.GetAsync("http://www.google.com");

Then on linux, the header No-value is not sent. This breaks things such as the AWS SDK on linux due to the request's signature not matching, plus, it is different to the behaviour on windows

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions