fixed do_put_request

Mon, 19 Aug 2013 14:45:53 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 19 Aug 2013 14:45:53 +0200
changeset 23
2b0a7361f15c
parent 22
e593f7e41be0
child 24
a317202ae787

fixed do_put_request

dav/methods.c file | annotate | diff | comparison | revisions
--- a/dav/methods.c	Mon Aug 19 14:23:00 2013 +0200
+++ b/dav/methods.c	Mon Aug 19 14:45:53 2013 +0200
@@ -447,6 +447,8 @@
         struct curl_slist *headers = NULL;
         headers = curl_slist_append(headers, "Transfer-Encoding: chunked");
         curl_easy_setopt(handle, CURLOPT_HTTPHEADER, headers);
+    } else {
+        curl_easy_setopt(handle, CURLOPT_INFILESIZE_LARGE, (curl_off_t)length);
     }
     
     curl_easy_setopt(handle, CURLOPT_READFUNCTION, read_func);

mercurial