From: Adam Dickmeiss Date: Thu, 27 Jun 2013 11:32:08 +0000 (+0200) Subject: Set vars in replacement also if empty X-Git-Tag: v1.3.59~37 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=c68b4f17734350d7613331d9bfbee615c62dd766;p=metaproxy-moved-to-github.git Set vars in replacement also if empty --- diff --git a/src/filter_http_rewrite.cpp b/src/filter_http_rewrite.cpp index 492d97a..293886a 100644 --- a/src/filter_http_rewrite.cpp +++ b/src/filter_http_rewrite.cpp @@ -417,8 +417,7 @@ const std::string yf::HttpRewrite::Replace::search_replace( = group_index.find(i); if (it != group_index.end()) { //it is - if (!what[i].str().empty()) - vars[it->second] = what[i]; + vars[it->second] = what[i]; } }