You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> f = furl('http://staging.s3-website.us-east-1.amazonaws.com')
>>> f.url
'http://staging.s3-website.us-east-1.amazonaws.com'
But:
>>> f = furl('staging.s3-website.us-east-1.amazonaws.com')
>>> f.scheme = 'http://' # yes, it's not a proper way, but still confusing how parser works
'http://:staging.s3-website.us-east-1.amazonaws.com'
I'm confused.
The text was updated successfully, but these errors were encountered:
in short, furl doesn't know whether to treat staging.s3-website.us-east-1.amazonaws.com as a path or a domain, as it can be both. so, to be unambiguous, it treats it as a path, resulting in 'http:///staging.s3-website.us-east-1.amazonaws.com' (with an empty host)
until furl knows the public suffix list (something i started working on but have yet to finish), you can avoid this by explicitly setting 'staging.s3-website.us-east-1.amazonaws.com' as the host, eg
Although it is okay, still looks weird:
Why is there triple slashes?
Additional:
But:
I'm confused.
The text was updated successfully, but these errors were encountered: