Add response rewrite rule
authorJakub Skoczen <jakub@indexdata.dk>
Fri, 3 May 2013 12:04:08 +0000 (14:04 +0200)
committerJakub Skoczen <jakub@indexdata.dk>
Fri, 3 May 2013 12:04:08 +0000 (14:04 +0200)
src/test_filter_rewrite.cpp

index 47f2049..67755dd 100644 (file)
@@ -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);