From: Jakub Skoczen Date: Fri, 3 May 2013 12:04:08 +0000 (+0200) Subject: Add response rewrite rule X-Git-Tag: v1.3.59~57^2~31 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=6ca510d9c7b0c706fc86caebb728028404b09fb2;p=metaproxy-moved-to-github.git Add response rewrite rule --- diff --git a/src/test_filter_rewrite.cpp b/src/test_filter_rewrite.cpp index 47f2049..67755dd 100644 --- 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( + "(?http\\:\\/\\/s?)(?[^\\/?#]+)\\/(?[^ >]+)", + "http://${pxhost}/${pxpath}/${host}/${path}" + )); fhr.configure(vec_req, vec_res);