aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpserver.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2022-01-07 15:48:34 +0100
committerMartin Ridgers <[email protected]>2022-01-07 15:55:12 +0100
commitdc6c5a98bd52655ad4d45e194a7fe182c9d196c9 (patch)
tree1dfe92455fd0f667240b2e8988079e39dc159719 /zenhttp/httpserver.cpp
parentCorrected typo (diff)
downloadzen-dc6c5a98bd52655ad4d45e194a7fe182c9d196c9.tar.xz
zen-dc6c5a98bd52655ad4d45e194a7fe182c9d196c9.zip
Some C++ libs do not implement string_view(iter, iter) ctor yet
Diffstat (limited to 'zenhttp/httpserver.cpp')
-rw-r--r--zenhttp/httpserver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/zenhttp/httpserver.cpp b/zenhttp/httpserver.cpp
index c022eea95..62b8d11a1 100644
--- a/zenhttp/httpserver.cpp
+++ b/zenhttp/httpserver.cpp
@@ -400,7 +400,8 @@ HttpServerRequest::GetQueryParams()
continue;
}
- const std::string_view Query{QueryIt, QueryEnd};
+ size_t QueryLen = ptrdiff_t(QueryEnd - QueryIt);
+ const std::string_view Query{QueryIt, QueryLen};
size_t DelimIndex = Query.find('&', 0);