X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ftest_filter_rewrite.cpp;h=430e7846dfd2911fdfc3c952923675737579702c;hb=327c0b4339d90ee73a9dac0d692bc94bf7f05ea1;hp=8e539813334415941ba2a62484662dfca5419587;hpb=fc60434912ceab56484a525b650089310526746f;p=metaproxy-moved-to-github.git diff --git a/src/test_filter_rewrite.cpp b/src/test_filter_rewrite.cpp index 8e53981..430e784 100644 --- a/src/test_filter_rewrite.cpp +++ b/src/test_filter_rewrite.cpp @@ -94,11 +94,9 @@ BOOST_AUTO_TEST_CASE( test_filter_rewrite_1 ) //create the http response - /* response, content */ const char *resp_buf = - /*123456789012345678 */ "HTTP/1.1 200 OK\r\n" - "Content-Length: 50\r\n" + "Content-Length: 441\r\n" "Content-Type: text/html\r\n" "Link: ; rel=absolute\r\n" "Link: ; rel=relative\r\n" @@ -121,11 +119,9 @@ BOOST_AUTO_TEST_CASE( test_filter_rewrite_1 ) "" ""; - /* response, content */ - const char *resp_result = - /*123456789012345678 */ + const char *resp_expected = "HTTP/1.1 200 OK\r\n" - "Content-Length: 50\r\n" + "Content-Length: 521\r\n" "Content-Type: text/html\r\n" "Link: ; rel=absolute\r\n" "Link: ; rel=relative\r\n" @@ -141,11 +137,11 @@ BOOST_AUTO_TEST_CASE( test_filter_rewrite_1 ) "" "

Welcome to our website. It doesn't make it easy to get pro" "xified" - "" + "" " An absolute link" "