Discrepancy in HttpServerRequest in authority and absoluteURI

15 views
Skip to first unread message

Ricardo Martin Camarero

unread,
Apr 13, 2024, 8:18:09 AMApr 13
to vert.x
Hi!

I have just filed a issue in vertx-web because there is a discrepancy between vert.x and web-vertx in `HttpServerRequest`: https://github.com/vert-x3/vertx-web/issues/2596.

But I still do not understand why `authority` returns null when host is empty or invalid and `absoluteURI` returns a full URI with authority (host:port) part. The URI obtains the authority from the `serverOrigin` in HttpUtils class. I see this was done in this commit: https://github.com/eclipse-vertx/vert.x/commit/3230e4d4004f4f7c1fe521d803690306d7e97e15. Why the `authority` does not default to `serverOrigin` as `absoluteURI`does? Does it make any sense doing two different things?

Best regards!
Reply all
Reply to author
Forward
0 new messages