summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-05-22 20:58:41 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-01-14 21:08:02 +0000
commitb8fc6cec3f0a029011a0071a07b297e213201feb (patch)
tree15420c0fea1d666e8b65796fc6af0df2c210eea9
parentCut 4 string_view everything else (diff)
downloadicespider-b8fc6cec3f0a029011a0071a07b297e213201feb.tar.bz2
icespider-b8fc6cec3f0a029011a0071a07b297e213201feb.tar.xz
icespider-b8fc6cec3f0a029011a0071a07b297e213201feb.zip
Add test case for response status line
-rw-r--r--icespider/unittests/testFcgi.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/icespider/unittests/testFcgi.cpp b/icespider/unittests/testFcgi.cpp
index 60f2aa7..adaaaff 100644
--- a/icespider/unittests/testFcgi.cpp
+++ b/icespider/unittests/testFcgi.cpp
@@ -315,5 +315,13 @@ BOOST_AUTO_TEST_CASE( cookies )
BOOST_REQUIRE_EQUAL("Set-Cookie: some+int%2e=1234; expires=Mon, 10 Oct 2016 23:32:58 GMT; domain=www.com; path=/dir; secure\r\n", r.out.str());
}
+BOOST_AUTO_TEST_CASE( response )
+{
+ CharPtrPtrArray env ({ "SCRIPT_NAME=/" });
+ TestRequest r(this, env);
+ r.response(200, "OK");
+ BOOST_REQUIRE_EQUAL("Status: 200 OK\r\n\r\n", r.out.str());
+}
+
BOOST_AUTO_TEST_SUITE_END();