libidav/methods.c

changeset 176
747f3796eddd
parent 172
cd9f1e772fd0
child 181
a8f8cdbf85df
--- a/libidav/methods.c	Thu Oct 15 17:45:00 2015 +0200
+++ b/libidav/methods.c	Thu Oct 15 19:04:49 2015 +0200
@@ -103,12 +103,11 @@
         }
     }
     
+    // deactivate header capturing and free captured map
+    util_capture_header(handle, NULL);
     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