libidav/davqlexec.c

changeset 205
bf756f6c3581
parent 185
cd42cccee550
child 235
0468df02e18f
--- a/libidav/davqlexec.c	Thu Mar 03 15:52:18 2016 +0100
+++ b/libidav/davqlexec.c	Sat Mar 05 19:28:24 2016 +0100
@@ -474,8 +474,8 @@
         
         util_set_url(sn, dav_resource_get_href(sr->resource));
         CURLcode ret = do_propfind_request(sn->handle, rqbuf, rpbuf);
-        int http_status = 0;
-        curl_easy_getinfo (sn->handle, CURLINFO_RESPONSE_CODE, &http_status);
+        long http_status = 0;
+        curl_easy_getinfo(sn->handle, CURLINFO_RESPONSE_CODE, &http_status);
         //printf("rpbuf: %s %s\n%.*s\n\n", sr->resource->path, sr->resource->href, rpbuf->pos, rpbuf->space);
         
         if(ret == CURLE_OK && http_status == 207) {

mercurial