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

sofaboss opened this issue Sep 8, 2020 · 0 comments


Copy link

@sofaboss 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

@bagder bagder self-assigned this Sep 8, 2020
bagder added a commit that referenced this issue Sep 8, 2020
Reported-by: sofaboss on github
Fixes #5942
@bagder bagder closed this in 36f6049 Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants