libidav/resource.c

changeset 97
5a3d27b8e6b0
parent 49
2f71f4ee247a
equal deleted inserted replaced
96:493959648de6 97:5a3d27b8e6b0
1041 } 1041 }
1042 1042
1043 // store properties 1043 // store properties
1044 int r = 0; 1044 int r = 0;
1045 sn->error = DAV_OK; 1045 sn->error = DAV_OK;
1046 if(data->set || data->remove) { 1046 if(data->set || data->remove > 0) {
1047 CxBuffer *request = create_proppatch_request(data); 1047 CxBuffer *request = create_proppatch_request(data);
1048 CxBuffer *response = cxBufferCreate(NULL, 1024, cxDefaultAllocator, CX_BUFFER_FREE_CONTENTS|CX_BUFFER_AUTO_EXTEND); 1048 CxBuffer *response = cxBufferCreate(NULL, 1024, cxDefaultAllocator, CX_BUFFER_FREE_CONTENTS|CX_BUFFER_AUTO_EXTEND);
1049 //printf("request:\n%.*s\n\n", request->pos, request->space); 1049 //printf("request:\n%.*s\n\n", request->pos, request->space);
1050 1050
1051 CURLcode ret = do_proppatch_request(sn, locktoken, request, response); 1051 CURLcode ret = do_proppatch_request(sn, locktoken, request, response);

mercurial