Browse Source

Fixed a problem of creation of empty pages

with enabled cache+not accept-encoding:gzip
master
Artyom Beilis 15 years ago
parent
commit
9de8e9d21d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      cache_interface.cpp

+ 1
- 1
cache_interface.cpp View File

@@ -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<<tmp<<compr;
if(cms->gzip){
cms->out_buf.str("");
cms->cout<<compr;
cms->gzip_done=true;
}


Loading…
Cancel
Save