From c2d6ad4962a7d1a81c25ab3d7bf83cff8647b49a Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Thu, 9 Sep 2021 20:42:30 +0200 Subject: Parse Accept mime type (ad hoc cherry pick from main) --- zenhttp/httpsys.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'zenhttp/httpsys.cpp') 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 -- cgit v1.2.3