From 7d36ea2732bd7e39cc382b8cd93fedb8179fdd72 Mon Sep 17 00:00:00 2001 From: denis <> Date: Tue, 29 May 2012 20:42:00 +0000 Subject: new flag to enforce gzip even if client did not request it --- ot_http.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ot_http.c') diff --git a/ot_http.c b/ot_http.c index 97bf2ec..a14f950 100644 --- a/ot_http.c +++ b/ot_http.c @@ -219,10 +219,14 @@ static const ot_keywords keywords_format[] = tai6464 t; #ifdef WANT_COMPRESSION_GZIP ws->request[ws->request_size] = 0; +#ifdef WANT_COMPRESSION_GZIP_ALWAYS if( strstr( read_ptr - 1, "gzip" ) ) { +#endif cookie->flag |= STRUCT_HTTP_FLAG_GZIP; format |= TASK_FLAG_GZIP; +#ifdef WANT_COMPRESSION_GZIP_ALWAYS } +#endif #endif /* Pass this task to the worker thread */ cookie->flag |= STRUCT_HTTP_FLAG_WAITINGFORTASK; -- cgit v1.2.3