# HG changeset patch # User Olaf Wintermann # Date 1539279376 -7200 # Node ID 6a198e1562780d7b832630e3a603d0a7a2a356c8 # Parent baa63fef5c5c4b956af88ae76eee1d60d7541e1e dav-sync: upload files with fixed content-length diff -r baa63fef5c5c -r 6a198e156278 dav/sync.c --- a/dav/sync.c Thu Oct 11 19:29:45 2018 +0200 +++ b/dav/sync.c Thu Oct 11 19:36:16 2018 +0200 @@ -1844,6 +1844,7 @@ } dav_set_content(res, in, (dav_read_func)myread, (dav_seek_func)file_seek); + dav_set_content_length(res, s.st_size); if(dir->tagconfig) { UcxList *tags = sync_get_file_tags(dir, local, NULL); @@ -1852,7 +1853,7 @@ dav_set_property_ns(res, DAV_NS, "tags", prop); } } - + int ret = -1; int created = 0; for(int i=0;i<=dir->max_retry;i++) {