Commit 084e0f90 authored by jan.koester's avatar jan.koester
Browse files

test

parent 04554f36
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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());