summaryrefslogtreecommitdiff
path: root/src/stat_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stat_cache.c')
-rw-r--r--src/stat_cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stat_cache.c b/src/stat_cache.c
index 283ead9..6fbf1ba 100644
--- a/src/stat_cache.c
+++ b/src/stat_cache.c
@@ -608,14 +608,14 @@ handler_t stat_cache_get_entry(server *srv, connection *con, buffer *name, stat_
break;
}
}
- etag_create(sce->etag, &(sce->st));
+ etag_create(sce->etag, &(sce->st), con->etag_flags);
#ifdef HAVE_XATTR
- if (buffer_is_empty(sce->content_type)) {
+ if (con->conf.use_xattr && buffer_is_empty(sce->content_type)) {
stat_cache_attr_get(sce->content_type, name->ptr);
}
#endif
} else if (S_ISDIR(st.st_mode)) {
- etag_create(sce->etag, &(sce->st));
+ etag_create(sce->etag, &(sce->st), con->etag_flags);
}
#ifdef HAVE_FAM_H