diff options
| author | Stefan Boberg <[email protected]> | 2021-10-03 20:11:05 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-10-03 20:11:05 +0200 |
| commit | 18186784b56fe81d2ef5e7e53398491d494f7551 (patch) | |
| tree | c582ad28b0b79fbaa3401525ed6cb4c05ee08b3c /zenhttp/httpsys.cpp | |
| parent | Merge branch 'main' of https://github.com/EpicGames/zen (diff) | |
| download | zen-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.cpp | 5 |
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 |