gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 328/411: examples/httpput: remove use of CURLOPT_PUT


From: gnunet
Subject: [gnurl] 328/411: examples/httpput: remove use of CURLOPT_PUT
Date: Wed, 13 Jan 2021 01:22:23 +0100

This is an automated email from the git hooks/post-receive script.

nikita pushed a commit to branch master
in repository gnurl.

commit fa6bbbe167873cd5a9d9c42714bf0d1a889c0e9b
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Mon Nov 9 01:00:52 2020 +0100

    examples/httpput: remove use of CURLOPT_PUT
    
    It is deprecated and unnecessary since it already sets CURLOPT_UPLOAD.
    
    Reported-by: Jeroen Ooms
    Fixes #6186
    Closes #6187
---
 docs/examples/httpput.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/docs/examples/httpput.c b/docs/examples/httpput.c
index 303f88208..163600a5b 100644
--- a/docs/examples/httpput.c
+++ b/docs/examples/httpput.c
@@ -89,12 +89,9 @@ int main(int argc, char **argv)
     /* we want to use our own read function */
     curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
 
-    /* enable uploading */
+    /* enable uploading (implies PUT over HTTP) */
     curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
 
-    /* HTTP PUT please */
-    curl_easy_setopt(curl, CURLOPT_PUT, 1L);
-
     /* specify target URL, and note that this URL should include a file
        name, not only a directory */
     curl_easy_setopt(curl, CURLOPT_URL, url);

-- 
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]