From 18186784b56fe81d2ef5e7e53398491d494f7551 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Sun, 3 Oct 2021 20:11:05 +0200 Subject: http: Moved logic for body suppression to a more central location this should prevent some mistake-induced bugs hopefully --- zenhttp/httpsys.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'zenhttp/httpsys.cpp') diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp index f4d3e45fe..fedaf282e 100644 --- a/zenhttp/httpsys.cpp +++ b/zenhttp/httpsys.cpp @@ -1146,6 +1146,11 @@ HttpSysServerRequest::HttpSysServerRequest(HttpSysTransaction& Tx, HttpService& { m_AcceptType = GetAcceptType(HttpRequestPtr); } + + if (m_Verb == HttpVerb::kHead) + { + SetSuppressResponseBody(); + } } Oid -- cgit v1.2.3