mirror of
https://github.com/curl/curl.git
synced 2026-05-04 15:09:55 +03:00
Jon Topper pointed out a code example bug
This commit is contained in:
parent
751e49fb0a
commit
1822dd0549
1 changed files with 1 additions and 1 deletions
|
|
@ -753,7 +753,7 @@ Customizing Operations
|
|||
request, and you're free to pass any amount of extra headers that you think
|
||||
fit. Adding headers are this easy:
|
||||
|
||||
struct curl_slist *headers;
|
||||
struct curl_slist *headers=NULL; /* init to NULL is important */
|
||||
|
||||
headers = curl_slist_append(headers, "Hey-server-hey: how are you?");
|
||||
headers = curl_slist_append(headers, "X-silly-content: yes");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue