From eafb20eb5ee66e6e79fd65db0afa35e0c26f4dad Mon Sep 17 00:00:00 2001 From: Ben Pope Date: Thu, 18 Jul 2024 22:40:17 +0100 Subject: [PATCH] uri::parse: Fix offset of query_ Signed-off-by: Ben Pope --- include/jsoncons/uri.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/jsoncons/uri.hpp b/include/jsoncons/uri.hpp index 61a71f3de..0b1936157 100644 --- a/include/jsoncons/uri.hpp +++ b/include/jsoncons/uri.hpp @@ -680,7 +680,7 @@ namespace jsoncons { break; case '#': path = std::make_pair(start,i); - query = std::make_pair(start,start); + query = std::make_pair(i,i); state = parse_state::expect_fragment; start = i+1; break;