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

curl_mime_headers man page: Wrong parameter order in example for curl_slist_append() #5942

Closed
sofaboss opened this issue Sep 8, 2020 · 0 comments

Comments

@sofaboss
Copy link

sofaboss commented Sep 8, 2020

I did this

Used the proposed example.

I expected the following

A working example.

The parameter order for the function curl_slist_append() is wrong.

It should be changed to:
headers = curl_slist_append(headers, "Custom-Header: mooo");

curl/libcurl version

curl 7.58.0 (x86_64-pc-linux-gnu)

operating system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants