libidav/session.c

changeset 420
ad419882e06e
parent 404
5c08b8e14df8
child 437
70c7d8e437f9
--- 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