From f2b338ae2e5c79f2fbafc965c8aaebb8cbdf1afa Mon Sep 17 00:00:00 2001 From: yhirose Date: Wed, 26 Aug 2026 22:52:15 -0400 Subject: [PATCH] Drop the empty Accept entry from the example's invalid list e96a52e made a leading comma legal, so the example printed "Unexpectedly succeeded!" for ",application/json". Reported in #2570. --- example/accept_header.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/example/accept_header.cc b/example/accept_header.cc index 56013ec..2b179de 100644 --- a/example/accept_header.cc +++ b/example/accept_header.cc @@ -55,8 +55,7 @@ int main() { "text/html;q=1.5,application/json", // q > 1.0 "text/html;q=-0.1,application/json", // q < 0.0 "text/html;q=invalid,application/json", // invalid q value - "invalidtype,application/json", // invalid media type - ",application/json" // empty entry + "invalidtype,application/json" // invalid media type }; for (const auto &invalid_accept : invalid_examples) {