summaryrefslogtreecommitdiff
path: root/src/stat_cache.c
diff options
context:
space:
mode:
authorMarcus Rückert <darix@opensu.se>2007-07-03 18:47:00 +0000
committerMarcus Rückert <darix@opensu.se>2007-07-03 18:47:00 +0000
commit5a583661e37db99d0f05b4d1e98163d08a609948 (patch)
treed75b41b685c07f09c1582a5309df3f4ad6853303 /src/stat_cache.c
parent8feb331858985e1345d862a677c51851b884d58a (diff)
downloadlighttpd1.4-5a583661e37db99d0f05b4d1e98163d08a609948.tar.gz
lighttpd1.4-5a583661e37db99d0f05b4d1e98163d08a609948.zip
- only generate the etag_flags once and store them in the connections
object. git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1881 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/stat_cache.c')
-rw-r--r--src/stat_cache.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/stat_cache.c b/src/stat_cache.c
index 533020bd..6fbf1bae 100644
--- a/src/stat_cache.c
+++ b/src/stat_cache.c
@@ -608,16 +608,14 @@ handler_t stat_cache_get_entry(server *srv, connection *con, buffer *name, stat_
break;
}
}
- etag_create(sce->etag, &(sce->st),
- (con->conf.etag_use_mtime ? ETAG_USE_MTIME : 0) | (con->conf.etag_use_inode ? ETAG_USE_INODE : 0) | (con->conf.etag_use_size ? ETAG_USE_SIZE : 0));
+ etag_create(sce->etag, &(sce->st), con->etag_flags);
#ifdef HAVE_XATTR
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),
- (con->conf.etag_use_mtime ? ETAG_USE_MTIME : 0) | (con->conf.etag_use_inode ? ETAG_USE_INODE : 0) | (con->conf.etag_use_size ? ETAG_USE_SIZE : 0));
+ etag_create(sce->etag, &(sce->st), con->etag_flags);
}
#ifdef HAVE_FAM_H