Closed alexanderfletcher closed 4 months ago
I made a patch to address this on the ruby-lang bugs list a year ago, at the time I didn't realise that the URI library was maintained on Github.
I only just saw @jeremyevans' comment on that issue, so I'll port that patch over to Github tomorrow and submit it as a PR.
So my PR #105 doesn't exactly resolve this issue but does change the default parser for URI::Generic.build
(with justification in the PR)
With URI::Generic you can pass in a custom parser (or the in built RFC_3986 one). However build uses the default parser. Would it be possible to extend the
build
method to allow to pass a parser in?It's also a bit confusing that the
parse
methods uses RFC3986 while the build method uses the older RFC2396