Skip to content
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

According to RFC 3986, uri scheme is mandatory (i.e. non-optional) #524

Closed
wants to merge 1 commit into from

Conversation

keroami
Copy link
Contributor

@keroami keroami commented Feb 12, 2024

Solves #523 by making scheme non-optional.

adds two tests, one for overriding scheme, the other including previously commented out TODO failures.

renames several uri.merge tests to double check I understood their purpose.

@lpil
Copy link
Member

lpil commented Feb 12, 2024

I've not been able to find an implementation of URI parsing where scheme is required in any programming language, and it seems impractical to not be able to parse without a scheme being present. Because of these I don't think we should make it mandatory, even if the RFC would like it to be.

@keroami
Copy link
Contributor Author

keroami commented Feb 12, 2024

somehow I was sure uri_string:parse did that, but now that I test, "path" just results in a path without a scheme.

@keroami keroami closed this Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants