sets curl default protocol to http

Sun, 17 Jun 2018 06:50:38 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 17 Jun 2018 06:50:38 +0200
changeset 420
ad419882e06e
parent 419
0b48f935f8a6
child 421
178dc32c8c9a

sets curl default protocol to http

libidav/session.c file | annotate | diff | comparison | revisions
--- a/libidav/session.c	Fri Jun 15 15:51:21 2018 +0200
+++ b/libidav/session.c	Sun Jun 17 06:50:38 2018 +0200
@@ -96,6 +96,9 @@
     }
     
     // set url
+#if LIBCURL_VERSION_NUM >= 0x072D00
+    curl_easy_setopt(sn->handle, CURLOPT_DEFAULT_PROTOCOL, "http");
+#endif
     curl_easy_setopt(sn->handle, CURLOPT_URL, base_url);
     
     // add to context

mercurial