vuori commented on issue #12496:
URL:
https://github.com/apache/trafficserver/issues/12496#issuecomment-3281785552
I looked into this a bit more, and looks like the `could not gather` message
is red herring: the comparison should be checking for `!= TS_SUCCESS` (like
other conditionals in this function). This should be fixed, otherwise it looks
like `_ready` won't become `true`'.
The deeper cause is that `CondtionUrl` is getting an `URLImpl` object that
only has path and query. Scheme/host/port are all null. Ultimately I think this
`URLImpl` comes from `TSHttpTxnServerReqGet` in `Resources::gather`.
So I guess at this point the `HTTPHdr` object is representing the URI which
will be sent to the origin server, which is only the path+query?
This makes the semantics of `%{URL}` rather confusing in the request phase.
Since `CLIENT-URL` is the pristine URL, what's the correct way to access the
post-remap host in the global context? `%{HEADER:Host}`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]