-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
register_scheme
does not comply with rfc2396 (or 3986)
#89
Comments
How many schemes are there that actually use a '.'? |
The answer is fourteen: $ curl -s https://www.iana.org/assignments/uri-schemes/uri-schemes.txt | sed -n '/^\([a-z][^ ]*\)/ s/\([^[:space:]]*\).*/\1/ p' | grep '\.' | wc -l
$ 14 |
A |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RFC2396 § 3.1 states that the grammar for a URI scheme is:
whereas
.register_scheme
usesconst_set
and the grammar of Ruby constants is inconsistent with the grammar for a URI scheme:How much trouble would it be to switch to a
Hash
keyed bySymbol
s, so that it's possible to register (compliant) URI schemes with hyphens,+
signs, dots?The text was updated successfully, but these errors were encountered: