summaryrefslogtreecommitdiff
path: root/src/stat_cache.c
diff options
context:
space:
mode:
authorMarcus Rückert <darix@opensu.se>2007-05-25 12:56:46 +0000
committerMarcus Rückert <darix@opensu.se>2007-05-25 12:56:46 +0000
commit6e332dd7bb505ad5de36db8e4724dd9dd0c7fcea (patch)
treeba6e5677401deb267e1d889e321c0b2f9a90d3c4 /src/stat_cache.c
parent450c7de76e01c4dc5be3989117215ce915188a05 (diff)
downloadlighttpd1.4-6e332dd7bb505ad5de36db8e4724dd9dd0c7fcea.tar.gz
lighttpd1.4-6e332dd7bb505ad5de36db8e4724dd9dd0c7fcea.zip
- do not use xattr for content-type handling unconditionally
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1863 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/stat_cache.c')
-rw-r--r--src/stat_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stat_cache.c b/src/stat_cache.c
index 283ead93..732d31d5 100644
--- a/src/stat_cache.c
+++ b/src/stat_cache.c
@@ -610,7 +610,7 @@ handler_t stat_cache_get_entry(server *srv, connection *con, buffer *name, stat_
}
etag_create(sce->etag, &(sce->st));
#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