gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]