projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bec25ed
)
Set vars in replacement also if empty
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 27 Jun 2013 11:32:08 +0000
(13:32 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 27 Jun 2013 11:32:08 +0000
(13:32 +0200)
src/filter_http_rewrite.cpp
patch
|
blob
|
history
diff --git
a/src/filter_http_rewrite.cpp
b/src/filter_http_rewrite.cpp
index
492d97a
..
293886a
100644
(file)
--- 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];
}
}