From d26e7b68d64992ad6e9006d82139528fca3b54b9 Mon Sep 17 00:00:00 2001 From: wbaumann Date: Fri, 5 Jun 2009 19:15:48 +0000 Subject: [PATCH] do HEAD if no Etag returned --- ChangeLog | 4 ++++ src/webdav.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7435b6a..5daf49e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/src/webdav.c b/src/webdav.c index 888e197..d69c964 100644 --- a/src/webdav.c +++ b/src/webdav.c @@ -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) {