libidav/methods.c

changeset 172
cd9f1e772fd0
parent 171
254326cbc1bc
child 176
747f3796eddd
--- 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