Loading src/httpd.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -1596,6 +1596,16 @@ void libhttppp::HttpEvent::Http3StreamEvent(netplus::socket *sock, HttpRequest &tempreq = *tempreq_ptr; tempreq.parseH3(decoded); // tempreq is a fresh, unconnected HttpRequest (see the H2 dispatch // path's identical comment) -- its `slots` is always empty, so stash // the real peer address from the QUIC socket this stream actually // arrived on while we still have it. if (sock) { std::string peerAddr; sock->getAddress(peerAddr); tempreq.setPeerAddress(peerAddr); } // Store POST body in RecvData so HttpForm::parse() can access it if (!bodyData.empty()) { tempreq.RecvData.append(bodyData.data(), bodyData.size()); Loading Loading
src/httpd.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -1596,6 +1596,16 @@ void libhttppp::HttpEvent::Http3StreamEvent(netplus::socket *sock, HttpRequest &tempreq = *tempreq_ptr; tempreq.parseH3(decoded); // tempreq is a fresh, unconnected HttpRequest (see the H2 dispatch // path's identical comment) -- its `slots` is always empty, so stash // the real peer address from the QUIC socket this stream actually // arrived on while we still have it. if (sock) { std::string peerAddr; sock->getAddress(peerAddr); tempreq.setPeerAddress(peerAddr); } // Store POST body in RecvData so HttpForm::parse() can access it if (!bodyData.empty()) { tempreq.RecvData.append(bodyData.data(), bodyData.size()); Loading