Skip to content
New issue

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

Allow sending headers with empty values #225

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gonubana
Copy link

@gonubana gonubana commented Dec 1, 2022

Allow sending headers with empty values,
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 #132
Fixes typhoeus/typhoeus#706

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sending a header with an empty value
1 participant