Skip to content

Allow sending headers with empty values#225

Open
gonubana wants to merge 1 commit intotyphoeus:masterfrom
gonubana:allow-empty-header-value
Open

Allow sending headers with empty values#225
gonubana wants to merge 1 commit intotyphoeus:masterfrom
gonubana:allow-empty-header-value

Conversation

@gonubana
Copy link
Copy Markdown

@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