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:
c4f5c25
)
Avoid assign empty string for content regex
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 8 Jul 2013 09:15:18 +0000
(09:15 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 8 Jul 2013 09:15:18 +0000
(09:15 +0000)
src/filter_http_rewrite.cpp
patch
|
blob
|
history
diff --git
a/src/filter_http_rewrite.cpp
b/src/filter_http_rewrite.cpp
index
69556ca
..
cb005e9
100644
(file)
--- a/
src/filter_http_rewrite.cpp
+++ b/
src/filter_http_rewrite.cpp
@@
-810,8
+810,8
@@
void yf::HttpRewrite::configure_phase(const xmlNode *ptr, Phase &phase)
Content c;
c.type = values[0];
Content c;
c.type = values[0];
- // if (!values[1].empty())
- c.content_re = values[1];
+ if (!values[1].empty())
+ c.content_re.assign(values[1], boost::regex::icase);
c.configure(ptr->children, rules);
phase.content_list.push_back(c);
}
c.configure(ptr->children, rules);
phase.content_list.push_back(c);
}