From 16010c196b09e288d355c82d6aa2476d64c33e2c Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Fri, 10 Jun 2022 14:44:53 +0200 Subject: http: fixed extension parsing logic the previous version did not remove the trailing dot from the extension-less URI --- zenhttp/httpasio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zenhttp/httpasio.cpp') diff --git a/zenhttp/httpasio.cpp b/zenhttp/httpasio.cpp index 81ceef888..1ca5fb1c1 100644 --- a/zenhttp/httpasio.cpp +++ b/zenhttp/httpasio.cpp @@ -1059,7 +1059,7 @@ HttpAsioServerRequest::HttpAsioServerRequest(asio_http::HttpRequest& Request, Ht if (AcceptContentType != HttpContentType::kUnknownContentType) { - m_Uri.remove_suffix(uint32_t(m_Uri.size() - LastComponentIndex - LastDotIndex - 1)); + m_Uri.remove_suffix(uint32_t(UriSuffix8.size() + 1)); } } } -- cgit v1.2.3