Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
The "Header;" syntax for empty headers does not disable automatically generated headers #2357
I did this
I want to disable an automatically generated header (e.g. "Host") and send an empty header instead:
I expected the following
I expected that curl sends a "Host" header with an empty value. Instead, it sends two "Host" headers, the default one ("Host: www.example.com") and the custom one ("Host:").
As a workaround, it's possible to send just the custom one with this command:
Reported-by: Michael Kaufmann Fixes #2357