From 98947e85ff75684276679316ded1f1c3c5449594 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sun, 10 Aug 2003 16:14:37 +0000 Subject: nginx-0.0.1-2003-08-10-20:14:37 import --- src/core/ngx_hunk.h | 4 + src/http/modules/ngx_http_ssi_filter.c | 154 +++++++++++++++++++++++++++++++-- 2 files changed, 149 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/core/ngx_hunk.h b/src/core/ngx_hunk.h index b948895a9..a1e17b2bc 100644 --- a/src/core/ngx_hunk.h +++ b/src/core/ngx_hunk.h @@ -22,6 +22,10 @@ /* the hunk is in file */ #define NGX_HUNK_FILE 0x0100 +#define NGX_HUNK_STORAGE (NGX_HUNK_IN_MEMORY + |NGX_HUNK_TEMP|NGX_HUNK_MEMORY|NGX_HUNK_MMAP + |NGX_HUNK_RECYCLED|NGX_HUNK_FILE) + /* hunk flags */ /* in thread state flush means to write the hunk completely before return */ diff --git a/src/http/modules/ngx_http_ssi_filter.c b/src/http/modules/ngx_http_ssi_filter.c index 857a8526e..f1cbbaaff 100644 --- a/src/http/modules/ngx_http_ssi_filter.c +++ b/src/http/modules/ngx_http_ssi_filter.c @@ -60,6 +60,19 @@ static int (*next_body_filter) (ngx_http_request_t *r, ngx_chain_t *ch); static char comment_string[] = "