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++) {