aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpsys.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-10-03 20:11:05 +0200
committerStefan Boberg <[email protected]>2021-10-03 20:11:05 +0200
commit18186784b56fe81d2ef5e7e53398491d494f7551 (patch)
treec582ad28b0b79fbaa3401525ed6cb4c05ee08b3c /zenhttp/httpsys.cpp
parentMerge branch 'main' of https://github.com/EpicGames/zen (diff)
downloadzen-18186784b56fe81d2ef5e7e53398491d494f7551.tar.xz
zen-18186784b56fe81d2ef5e7e53398491d494f7551.zip
http: Moved logic for body suppression to a more central location
this should prevent some mistake-induced bugs hopefully
Diffstat (limited to 'zenhttp/httpsys.cpp')
-rw-r--r--zenhttp/httpsys.cpp5
1 files changed, 5 insertions, 0 deletions
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