-
Notifications
You must be signed in to change notification settings - Fork 152
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
Extra slash in string representation. #103
Comments
Absolutely not by design. Wonderful catch. I'll rectify this shortly. |
I, too, got confused. This is intentional behavior. Albeit a bit of an initial See #85 and my detailed answer here #85 (comment). Long story short: Therefore, for consistent behavior, furl parses all such strings as paths. So, to create your URL as intended, explicitly set >>> from furl import furl
>>> furl().set(scheme='http', host='www.example.com').tostr()
'http://www.example.com' Does that answer your question? |
Resolution of this Issue tied with the resolution of #110. |
I ran into the same confusion with triple slashes. Just a usability thught: Can furl support specifying an furl(url, is_domain=True, scheme='https') That way setting a scheme on a url which does not have one will become easier especially for the case of domains. |
Hi,
When I take a schemaless URL, and set a schema, the resulting string has an extra slash.
'http:///www.example.com'
Is that by design? Can I get rid of it?
The text was updated successfully, but these errors were encountered: