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

Furl 0.3.6 does not parse mailto: schemes correctly #30

Closed
Markbnj opened this issue Jan 10, 2014 · 2 comments
Closed

Furl 0.3.6 does not parse mailto: schemes correctly #30

Markbnj opened this issue Jan 10, 2014 · 2 comments

Comments

@Markbnj
Copy link

Markbnj commented Jan 10, 2014

Steps to reproduce:

  1. mkproject furltest
  2. pip install furl
  3. In python 2.7.5:

import furl
f = furl.furl('mailto:someone@somewhere.com')
f.scheme
f = furl.furl('mailto://someone@somewhere.com')
f.scheme
"mailto"

Forward slashes are not required for URIs with the "mailto" scheme.
See RFC 6068 @ http://tools.ietf.org/html/rfc6068

@gruns
Copy link
Owner

gruns commented Jan 11, 2014

Wonderful find.

I'll fix this shortly. Pull requests welcome.

@gruns
Copy link
Owner

gruns commented Jan 12, 2014

mailto: is now supported.

>>> f = furl('mailto:user:pass@arc.io')
>>> f.scheme, f.netloc
('mailto', 'user:pass@arc.io')
>>> f.url
'mailto:user:pass@arc.io'

This fix will ship in the next version of furl, v0.3.7. For now, update with git pull.

Thank you for bringing this issue to my attention Markbnj.

@gruns gruns closed this as completed Jan 12, 2014
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

No branches or pull requests

2 participants