Loading src/http.cpp +8 −6 Original line number Diff line number Diff line Loading @@ -2457,6 +2457,7 @@ size_t libhttppp::HttpRequest::parseH2(const std::vector<hpack::HeaderField> &he std::string method = (methodHd && methodHd->getfirstValue()) ? methodHd->getfirstValue()->getvalue() : "GET"; if (method == "GET") _RequestType = GETREQUEST; else if (method == "POST") _RequestType = POSTREQUEST; else if (method == "DELETE") _RequestType = DELETEREQUEST; else _RequestType = GETREQUEST; auto *pathHd = getHeaderData(":path"); Loading Loading @@ -2523,6 +2524,7 @@ size_t libhttppp::HttpRequest::parseH3(const std::vector<qpack::HeaderField> &he std::string method = (methodHd && methodHd->getfirstValue()) ? methodHd->getfirstValue()->getvalue() : "GET"; if (method == "GET") _RequestType = GETREQUEST; else if (method == "POST") _RequestType = POSTREQUEST; else if (method == "DELETE") _RequestType = DELETEREQUEST; else _RequestType = GETREQUEST; auto *pathHd = getHeaderData(":path"); Loading Loading
src/http.cpp +8 −6 Original line number Diff line number Diff line Loading @@ -2457,6 +2457,7 @@ size_t libhttppp::HttpRequest::parseH2(const std::vector<hpack::HeaderField> &he std::string method = (methodHd && methodHd->getfirstValue()) ? methodHd->getfirstValue()->getvalue() : "GET"; if (method == "GET") _RequestType = GETREQUEST; else if (method == "POST") _RequestType = POSTREQUEST; else if (method == "DELETE") _RequestType = DELETEREQUEST; else _RequestType = GETREQUEST; auto *pathHd = getHeaderData(":path"); Loading Loading @@ -2523,6 +2524,7 @@ size_t libhttppp::HttpRequest::parseH3(const std::vector<qpack::HeaderField> &he std::string method = (methodHd && methodHd->getfirstValue()) ? methodHd->getfirstValue()->getvalue() : "GET"; if (method == "GET") _RequestType = GETREQUEST; else if (method == "POST") _RequestType = POSTREQUEST; else if (method == "DELETE") _RequestType = DELETEREQUEST; else _RequestType = GETREQUEST; auto *pathHd = getHeaderData(":path"); Loading