Commit 54cfbe86 authored by jan.koester's avatar jan.koester
Browse files

delete bugfixes

parent 6db038e6
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -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");
@@ -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");