--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/e1f5dffff9984992799b4e01345d1f89d6783ff2.camel%40kortschak.io.
Also, see https://datatracker.ietf.org/doc/html/rfc2396#section-3 for more details on the scheme + authority.It all depends on what the URL parse is supposed to return, and based on the return structure - since it has elements like ‘host’ - it is supposed to be decoding a valid http url - using a single slash is not valid.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD-64xfYVxqpAAKtUHH9%2BQ5srfxw3m1deeb741KD2PC4wQ%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/96AA5F8C-CA16-4322-88C4-0B28399203DC%40ix.netcom.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/CAEkBMfF9YcxzQTMG0jimCnuTvLgknP7-UzBuVLcZsk%2BRS_DC3g%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/CAEkBMfHjUYTRZAk%3DpH2-wrTkrjXWToqcS-yRR%2BTidRnT31G3Mg%40mail.gmail.com.
The file scheme is not an http scheme.
The rfc states the http scheme must have the // - so the parsing is should return an error in this case, UNLESS, you believe that the parsing does not understand the semantics of the scheme, and if that is the case, then having it return a ‘host’ is also incorrect - as there is nothing that states a ‘host’ is a required element of a basic uri, it is simply scheme:data…So like a lot of the Go stdlib, there is a defacto “standard” it implements that is not based strictly on specifications
Non-validating parsers (those that merely separate a URI reference into
its major components) will often ignore the subcomponent structure of
authority, treating it as an opaque string from the double-slash to
the first terminating delimiter, until such time as the URI is
dereferenced.
On Feb 21, 2025, at 1:32 AM, Axel Wagner <axel.wa...@googlemail.com> wrote:
The general form represented is:
[scheme:][//[userinfo@]host][/]path[?query][#fragment]
On Feb 21, 2025, at 1:47 AM, Robert Engels <ren...@ix.netcom.com> wrote:
On Feb 21, 2025, at 1:58 AM, Robert Engels <ren...@ix.netcom.com> wrote:
On Feb 21, 2025, at 2:54 AM, Axel Wagner <axel.wa...@googlemail.com> wrote:
The general form represented is:[scheme:][//[userinfo@]host][/]path[?query][#fragment]Which shows the // to be required.
Maybe next time stop being snotty like a spoiled child and put in some reading effort.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/fa5c37edec43169d9523eaca188761665fc0959c.camel%40kortschak.io.