[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 118/411: curl_mime_headers.3: fix the example's use of curl_slis
From: |
gnunet |
Subject: |
[gnurl] 118/411: curl_mime_headers.3: fix the example's use of curl_slist_append |
Date: |
Wed, 13 Jan 2021 01:18:53 +0100 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit 36f60494aea504b269e740af49135c967813e5b1
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Tue Sep 8 17:25:27 2020 +0200
curl_mime_headers.3: fix the example's use of curl_slist_append
Reported-by: sofaboss on github
Fixes #5942
Closes #5943
---
docs/libcurl/curl_mime_headers.3 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/libcurl/curl_mime_headers.3 b/docs/libcurl/curl_mime_headers.3
index 1d02e1ee5..15ccafea8 100644
--- a/docs/libcurl/curl_mime_headers.3
+++ b/docs/libcurl/curl_mime_headers.3
@@ -5,7 +5,7 @@
.\" * | (__| |_| | _ <| |___
.\" * \___|\___/|_| \_\_____|
.\" *
-.\" * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
+.\" * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
.\" *
.\" * This software is licensed as described in the file COPYING, which
.\" * you should have received as part of this distribution. The terms
@@ -50,7 +50,7 @@ CURLE_OK or a CURL error code upon failure.
.nf
struct curl_slist *headers = NULL;
- headers = curl_slist_append("Custom-Header: mooo", headers);
+ headers = curl_slist_append(headers, "Custom-Header: mooo");
/* use these headers, please take ownership */
curl_mime_headers(part, headers, TRUE);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnurl] 97/411: curl: in retry output don't call all problems "transient", (continued)
- [gnurl] 97/411: curl: in retry output don't call all problems "transient", gnunet, 2021/01/12
- [gnurl] 79/411: schannel: make it 'struct Curl_schannel*', gnunet, 2021/01/12
- [gnurl] 88/411: scripts/delta: add diffstat summary, gnunet, 2021/01/12
- [gnurl] 117/411: lib583: fix enum mixup, gnunet, 2021/01/12
- [gnurl] 114/411: RELEASE-NOTES: synced, gnunet, 2021/01/12
- [gnurl] 120/411: base64: also build for pop3 and imap, gnunet, 2021/01/12
- [gnurl] 89/411: libssh2: pass on the error from ssh_force_knownhost_key_type, gnunet, 2021/01/12
- [gnurl] 119/411: base64: enable in build with SMTP, gnunet, 2021/01/12
- [gnurl] 122/411: http: consolidate nghttp2_session_mem_recv() call paths, gnunet, 2021/01/12
- [gnurl] 115/411: lib: fix -Wassign-enum warnings, gnunet, 2021/01/12
- [gnurl] 118/411: curl_mime_headers.3: fix the example's use of curl_slist_append,
gnunet <=
- [gnurl] 113/411: url: use blank credentials when using proxy w/o username and password, gnunet, 2021/01/12
- [gnurl] 136/411: ftp: a 550 response to SIZE returns CURLE_REMOTE_FILE_NOT_FOUND, gnunet, 2021/01/12
- [gnurl] 134/411: curl: make glob_match_url use dynbuf, gnunet, 2021/01/12
- [gnurl] 105/411: CI/azure: add test number to title for display in analytics, gnunet, 2021/01/12
- [gnurl] 87/411: http_proxy: do not crash with HTTPS_PROXY and NO_PROXY set, gnunet, 2021/01/12
- [gnurl] 102/411: tests: remove pipelining tests, gnunet, 2021/01/12
- [gnurl] 126/411: dynbuf: provide curlx_ names for reuse by the curl tool, gnunet, 2021/01/12
- [gnurl] 121/411: HISTORY: mention alt-svc added in 2019, gnunet, 2021/01/12
- [gnurl] 96/411: easygetopt: pass a valid enum to avoid compiler warning, gnunet, 2021/01/12
- [gnurl] 94/411: tool: update --help with categories, gnunet, 2021/01/12