diff options
author | Marcus Rückert <darix@opensu.se> | 2007-07-03 18:47:00 +0000 |
---|---|---|
committer | Marcus Rückert <darix@opensu.se> | 2007-07-03 18:47:00 +0000 |
commit | 5a583661e37db99d0f05b4d1e98163d08a609948 (patch) | |
tree | d75b41b685c07f09c1582a5309df3f4ad6853303 /src/configfile.c | |
parent | 8feb331858985e1345d862a677c51851b884d58a (diff) | |
download | lighttpd-git-5a583661e37db99d0f05b4d1e98163d08a609948.tar.gz |
- 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/configfile.c')
-rw-r--r-- | src/configfile.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/configfile.c b/src/configfile.c index 7d4df881..921109f0 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -381,6 +381,10 @@ int config_patch_connection(server *srv, connection *con, comp_key_t comp) { } } + con->etag_flags = (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); + return 0; } #undef PATCH |