diff -r 9e14d920a7d0 -r 747f3796eddd libidav/methods.c --- 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; }