We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello!
I am trying to make a head request with 2 custom headers, one of them having an empty value:
Typhoeus.head('https://example.com', headers: {'h_k1' => '', 'h_k2' => 'h_v2'}, verbose: true)
but when I inspect what headers get sent (by libcurl), the header with an empty value (h_k1) isn't among them.
Put simply, I'd like to reproduce:
curl -v -I -H 'h_k1;' -H 'h_k2: h_v2' https://example.com
with typhoeus.
The text was updated successfully, but these errors were encountered:
Allow sending headers with empty values,
23b3454
while also allowing the user to remove default headers set by libcurl. See https://curl.se/libcurl/c/CURLOPT_HTTPHEADER.html for more details. passing " headers: {'h1' => 'v1', 'h2' => '', 'h3;' => ''} " corresponds to these curl options: " -H 'h1: v1' -H 'h2:' -H 'h3;' " Enhances typhoeus#132 Fixes typhoeus/typhoeus#706
Successfully merging a pull request may close this issue.
Hello!
I am trying to make a head request with 2 custom headers, one of them having an empty value:
but when I inspect what headers get sent (by libcurl), the header with an empty value (h_k1) isn't among them.
Put simply, I'd like to reproduce:
with typhoeus.
The text was updated successfully, but these errors were encountered: