do HEAD if no Etag returned

This commit is contained in:
wbaumann 2009-06-05 19:15:48 +00:00
parent 317e8a19df
commit d26e7b68d6
2 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,10 @@
ChangeLog for davfs2
--------------------

2009-06-05 Werner Baumann (werner.baumann@onlinehome.de)
* wedav.c, dav_put:
Do HEAD if no etag returned (regression in 1.4.0).

2009-05-31 Werner Baumann (werner.baumann@onlinehome.de)
* cache.c, cache.h, dav_coda.c, dav_fuse.c:
Cache quota in global variable fs_stat.

View File

@ -1031,6 +1031,8 @@ dav_put(const char *path, const char *cache_path, int *exists, time_t *expire,
if (etag) {
if (*etag) free(*etag);
*etag = normalize_etag(ne_get_response_header(req, "ETag"));
if (!*etag)
need_head = 1;
}

if (mtime) {