aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpsys.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2022-06-10 14:44:53 +0200
committerStefan Boberg <[email protected]>2022-06-10 14:44:53 +0200
commit16010c196b09e288d355c82d6aa2476d64c33e2c (patch)
tree9eb13db360f69dcddeeaefd07fa1f9a4dd5ca1c8 /zenhttp/httpsys.cpp
parentadded API note (diff)
downloadzen-16010c196b09e288d355c82d6aa2476d64c33e2c.tar.xz
zen-16010c196b09e288d355c82d6aa2476d64c33e2c.zip
http: fixed extension parsing logic
the previous version did not remove the trailing dot from the extension-less URI
Diffstat (limited to 'zenhttp/httpsys.cpp')
-rw-r--r--zenhttp/httpsys.cpp2
1 files changed, 1 insertions, 1 deletions
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));
}
}
}