Set vars in replacement also if empty
[metaproxy-moved-to-github.git] / src / filter_http_rewrite.cpp
index 492d97a..293886a 100644 (file)
@@ -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];
             }
 
         }