From ee5fcbce34eaef87ffced2a993c8443af4af4fe2 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Fri, 14 Jun 2024 22:12:57 +0200 Subject: 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 --- src/zenhttp/servers/httpparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zenhttp/servers/httpparser.cpp') 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) { -- cgit v1.2.3