From 6e332dd7bb505ad5de36db8e4724dd9dd0c7fcea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= Date: Fri, 25 May 2007 12:56:46 +0000 Subject: [PATCH] - 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 --- src/stat_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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