Mani,
The RFC actually says (Section 3.2):
"The authority component is preceded by a double slash ("//") and is
terminated by the next slash ("/"), question mark ("?"), or number
sign ("#") character, or by the end of the URI."
To be fully conformant with the RFC, I suppose '#' needs to be added
to the parser as authority terminating delimiter.
Cheers,
Vladimir "Bob" Zakharychev
Disclaimer: The views and opinions expressed in this email are my
own and do not necessarily reflect the official policy or position of
my employer.
>From: Mani Goyal <[email protected]>
>Sent: Wednesday, August 12, 2026 5:07 AM
>To: [email protected]
>Subject: [PATCH] BUG/MEDIUM: http: fix authority parsing for absolute-form URI
>with empty path
>
...
>
>Per RFC 3986, authority terminates at '/', '?', or the end of the
>URI, so also stop at '?'.
>
...