aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zenhttp/httpasio.cpp2
-rw-r--r--zenhttp/httpsys.cpp2
2 files changed, 2 insertions, 2 deletions
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));
}
}
}
diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp
index 8e898eb18..023d2215e 100644
--- a/zenhttp/httpsys.cpp
+++ b/zenhttp/httpsys.cpp
@@ -1248,7 +1248,7 @@ HttpSysServerRequest::HttpSysServerRequest(HttpSysTransaction& Tx, HttpService&
if (AcceptContentType != HttpContentType::kUnknownContentType)
{
- m_UriUtf8.RemoveSuffix(uint32_t(m_UriUtf8.Size() - LastComponentIndex - LastDotIndex - 1));
+ m_UriUtf8.RemoveSuffix((uint32_t) (UriSuffix8.size() + 1));
}
}
}