diff -r 254326cbc1bc -r cd9f1e772fd0 libidav/methods.c --- 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; }