libidav/methods.c

branch
dav-2
changeset 894
e86049631677
parent 893
38800d479cd4
equal deleted inserted replaced
893:38800d479cd4 894:e86049631677
1076 char *ltheader = cx_asprintf("If: <%s> (<%s>)", url, lock).ptr; 1076 char *ltheader = cx_asprintf("If: <%s> (<%s>)", url, lock).ptr;
1077 headers = curl_slist_append(headers, ltheader); 1077 headers = curl_slist_append(headers, ltheader);
1078 free(ltheader); 1078 free(ltheader);
1079 } 1079 }
1080 //cxstring deststr = ucx_sprintf("Destination: %s", dest); 1080 //cxstring deststr = ucx_sprintf("Destination: %s", dest);
1081 cxmutstr deststr = cx_strcat(2, cx_str("Destination: "), cx_str(dest)); 1081 cxmutstr deststr = cx_strcat(CX_NULLSTR, 2, cx_str("Destination: "), cx_str(dest));
1082 headers = curl_slist_append(headers, deststr.ptr); 1082 headers = curl_slist_append(headers, deststr.ptr);
1083 if(override) { 1083 if(override) {
1084 headers = curl_slist_append(headers, "Overwrite: T"); 1084 headers = curl_slist_append(headers, "Overwrite: T");
1085 } else { 1085 } else {
1086 headers = curl_slist_append(headers, "Overwrite: F"); 1086 headers = curl_slist_append(headers, "Overwrite: F");

mercurial