aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/servers/httpparser.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-06-14 22:12:57 +0200
committerGitHub Enterprise <[email protected]>2024-06-14 22:12:57 +0200
commitee5fcbce34eaef87ffced2a993c8443af4af4fe2 (patch)
tree7eeb7df5c48d11a2653e1536f39f4f0bf17f0b53 /src/zenhttp/servers/httpparser.cpp
parentworkspace share path hardening (#95) (diff)
downloadzen-ee5fcbce34eaef87ffced2a993c8443af4af4fe2.tar.xz
zen-ee5fcbce34eaef87ffced2a993c8443af4af4fe2.zip
don't assert that we have moved bytes if source block is zero size (#97)
* don't assert that we have moved bytes if source block is zero size * handle invalid session ids gracefully
Diffstat (limited to 'src/zenhttp/servers/httpparser.cpp')
-rw-r--r--src/zenhttp/servers/httpparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenhttp/servers/httpparser.cpp b/src/zenhttp/servers/httpparser.cpp
index b848a5243..6829faa4a 100644
--- a/src/zenhttp/servers/httpparser.cpp
+++ b/src/zenhttp/servers/httpparser.cpp
@@ -149,7 +149,7 @@ HttpRequestParser::AppendCurrentHeader()
}
else if (HeaderHash == HashSession)
{
- m_SessionId = Oid::FromHexString(HeaderValue);
+ m_SessionId = Oid::TryFromHexString(HeaderValue);
}
else if (HeaderHash == HashRequest)
{