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:
4e89edd
)
Add response rewrite rule
author
Jakub Skoczen
<jakub@indexdata.dk>
Fri, 3 May 2013 12:04:08 +0000
(14:04 +0200)
committer
Jakub Skoczen
<jakub@indexdata.dk>
Fri, 3 May 2013 12:04:08 +0000
(14:04 +0200)
src/test_filter_rewrite.cpp
patch
|
blob
|
history
diff --git
a/src/test_filter_rewrite.cpp
b/src/test_filter_rewrite.cpp
index
47f2049
..
67755dd
100644
(file)
--- a/
src/test_filter_rewrite.cpp
+++ b/
src/test_filter_rewrite.cpp
@@
-344,6
+344,10
@@
BOOST_AUTO_TEST_CASE( test_filter_rewrite_2 )
));
spair_vec vec_res;
+ vec_res.push_back(std::make_pair(
+ "(?<proto>http\\:\\/\\/s?)(?<host>[^\\/?#]+)\\/(?<path>[^ >]+)",
+ "http://${pxhost}/${pxpath}/${host}/${path}"
+ ));
fhr.configure(vec_req, vec_res);