Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

as_string should add scheme to protocol-less uri if it's specified as argument #12

Open
ghost opened this issue Jun 19, 2013 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 19, 2013

If creating a new URI like so, the scheme should be added to the string:

$ perl -MURI -E 'my $uri = URI->new("//example.com/p?q=1", "http"); say $uri->as_string'
//example.com/p?q=1

It should instead print:

http://example.com/p?q=1
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants