From 9de8e9d21dfcff56c13c54096e8d61f0d06676f5 Mon Sep 17 00:00:00 2001 From: Artyom Beilis Date: Mon, 27 Oct 2008 11:10:25 +0000 Subject: [PATCH] Fixed a problem of creation of empty pages with enabled cache+not accept-encoding:gzip --- cache_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache_interface.cpp b/cache_interface.cpp index 079090e..feea2e6 100644 --- a/cache_interface.cpp +++ b/cache_interface.cpp @@ -58,11 +58,11 @@ void cache_iface::store_page(string const &key,time_t timeout) long level=cms->app.config.lval("gzip.level",-1); long length=cms->app.config.lval("gzip.buffer",-1); string tmp=cms->out_buf.str(); - cms->out_buf.str(""); string compr=deflate(tmp,level,length); a<gzip){ + cms->out_buf.str(""); cms->cout<gzip_done=true; }