aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpsys.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-09 20:42:30 +0200
committerStefan Boberg <[email protected]>2021-09-09 20:42:30 +0200
commitc2d6ad4962a7d1a81c25ab3d7bf83cff8647b49a (patch)
tree7911bfdb1e597eb217cf69c4cbd1098d39f9bb87 /zenhttp/httpsys.cpp
parentAttempted to tweak option defaults, they still don't quite work the way I wou... (diff)
downloadzen-c2d6ad4962a7d1a81c25ab3d7bf83cff8647b49a.tar.xz
zen-c2d6ad4962a7d1a81c25ab3d7bf83cff8647b49a.zip
Parse Accept mime type (ad hoc cherry pick from main)
Diffstat (limited to 'zenhttp/httpsys.cpp')
-rw-r--r--zenhttp/httpsys.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp
index 2041be5c3..be538e7f7 100644
--- a/zenhttp/httpsys.cpp
+++ b/zenhttp/httpsys.cpp
@@ -906,6 +906,9 @@ HttpSysServerRequest::HttpSysServerRequest(HttpSysTransaction& Tx, HttpService&
const HTTP_KNOWN_HEADER& CtHdr = HttpRequestPtr->Headers.KnownHeaders[HttpHeaderContentType];
m_ContentType = MapContentType({CtHdr.pRawValue, CtHdr.RawValueLength});
+
+ const HTTP_KNOWN_HEADER& AcceptHdr = HttpRequestPtr->Headers.KnownHeaders[HttpHeaderAccept];
+ m_AcceptType = MapContentType({AcceptHdr.pRawValue, AcceptHdr.RawValueLength});
}
void