summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-09-05 19:39:30 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-12-17 15:36:04 +0000
commit003f13bf4af2f86fe486620000e630d54a854c47 (patch)
treedad58972346104731b7ecd78e07a840fd17d0ed1
parentNon-allocating, non-FILE based, view based Accept parser (diff)
downloadicespider-003f13bf4af2f86fe486620000e630d54a854c47.tar.bz2
icespider-003f13bf4af2f86fe486620000e630d54a854c47.tar.xz
icespider-003f13bf4af2f86fe486620000e630d54a854c47.zip
Add test cases for invalid accept where q is missing a value
-rw-r--r--icespider/unittests/testAccept.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/icespider/unittests/testAccept.cpp b/icespider/unittests/testAccept.cpp
index eb59bb3..7719d56 100644
--- a/icespider/unittests/testAccept.cpp
+++ b/icespider/unittests/testAccept.cpp
@@ -27,6 +27,8 @@ BOOST_DATA_TEST_CASE(bad_requests,
" / ",
" ^ ",
" * / plain ",
+ " text / plain ; q ",
+ " text / plain ; q = ",
" text / plain ; q = 0.0 ",
" text / plain ; q = 1.1 ",
" text / plain ; f = 0.1 ",