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
I have a URL, which is URL("google.com")
I want to add a scheme to it. I need URL("https://google.com")
But how...
I try URL("google.com").with_scheme("https"), raise ValueError("scheme replacement is not allowed for relative URLs")
Any method to do it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a URL, which is

URL("google.com")
I want to add a scheme to it. I need
URL("https://google.com")
But how...
I try
URL("google.com").with_scheme("https")
, raise ValueError("scheme replacement is not allowed for relative URLs")Any method to do it?
Beta Was this translation helpful? Give feedback.
All reactions