cleanup curl header options in do_propfind_request

Thu, 15 Oct 2015 17:44:41 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Thu, 15 Oct 2015 17:44:41 +0200
changeset 172
cd9f1e772fd0
parent 171
254326cbc1bc
child 175
9e14d920a7d0

cleanup curl header options in do_propfind_request

libidav/methods.c file | annotate | diff | comparison | revisions
--- a/libidav/methods.c	Thu Oct 15 16:16:44 2015 +0200
+++ b/libidav/methods.c	Thu Oct 15 17:44:41 2015 +0200
@@ -106,6 +106,9 @@
     ucx_map_free_content(respheaders, free);
     ucx_map_free(respheaders);
     
+    curl_easy_setopt(handle, CURLOPT_HEADERFUNCTION, NULL);
+    curl_easy_setopt(handle, CURLOPT_HEADERDATA, NULL);
+    
     return ret;
 }
 

mercurial