Set vars in replacement also if empty
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 27 Jun 2013 11:32:08 +0000 (13:32 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 27 Jun 2013 11:32:08 +0000 (13:32 +0200)
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];
             }
 
         }