444 read_func = (dav_read_func)ucx_buffer_read; |
444 read_func = (dav_read_func)ucx_buffer_read; |
445 curl_easy_setopt(handle, CURLOPT_INFILESIZE_LARGE, (curl_off_t)length); |
445 curl_easy_setopt(handle, CURLOPT_INFILESIZE_LARGE, (curl_off_t)length); |
446 } else if(length == 0) { |
446 } else if(length == 0) { |
447 struct curl_slist *headers = NULL; |
447 struct curl_slist *headers = NULL; |
448 headers = curl_slist_append(headers, "Transfer-Encoding: chunked"); |
448 headers = curl_slist_append(headers, "Transfer-Encoding: chunked"); |
|
449 curl_easy_setopt(handle, CURLOPT_INFILESIZE_LARGE, (curl_off_t)1); |
449 curl_easy_setopt(handle, CURLOPT_HTTPHEADER, headers); |
450 curl_easy_setopt(handle, CURLOPT_HTTPHEADER, headers); |
450 } else { |
451 } else { |
451 curl_easy_setopt(handle, CURLOPT_INFILESIZE_LARGE, (curl_off_t)length); |
452 curl_easy_setopt(handle, CURLOPT_INFILESIZE_LARGE, (curl_off_t)length); |
452 } |
453 } |
453 |
454 |