Jetty version(s)
12.1.x
Description
Following up on this comment: #1445 (comment)
In case of HTTP conversations, for example redirects, request Rq1 gets a 302 Rs1, which triggers the internal HttpClient mechanism to follow the redirect and send request Rq2 that gets a 200 Rs2.
Rs1 and Rq2 are "internal" and what the application sees is Rq1 and Rs2, i.e. the request and the 200 response.
Unfortunately, calling Response.getRequest() from listeners when Rs2 is notified to listeners attached to Rq1 via e.g. Request.onResponseSuccess(), yields Rq2 instead of Rq1.