From 6ca510d9c7b0c706fc86caebb728028404b09fb2 Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Fri, 3 May 2013 14:04:08 +0200 Subject: [PATCH] Add response rewrite rule --- src/test_filter_rewrite.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 1.7.10.4