-
Notifications
You must be signed in to change notification settings - Fork 6
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
to_url broken with url > 2.1.1 #8
Comments
More discussion around the |
Uh, that change is not something I'd expect from a patch release. I created a workaround, try 5591cc7. |
Thanks! I'll give it a try. |
Your fix works for me locally, thanks again. I started looking into whether there was a clean way to add some features upstream for this use case, I'll try to remember to follow up if I make progress on that. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We've recently observed the to_string method returning None with the following warning:
I think I've tracked this down to an incompatibility between env_proxy and the 2.1.1 version of the URL crate.
The following code constructs a new Url with the scheme
xhttp
orxhttps
and then asssume we can callset_scheme
to set it back to the original scheme:env_proxy/src/lib.rs
Lines 175 to 197 in 8bcfd3a
As of this commit in the url crate, you cannot set the scheme from a non-canonical scheme to a canonical scheme:
servo/rust-url@7efdc53#diff-b4aea3e418ccdb71239b96952d9cddb6R2029-R2077
As a result, the env_proxy to_url function fails in all of the use cases I've tried. The crate's tests also fail when using url 2.1.1+:
But pass if you run them with URL 2.0:
The text was updated successfully, but these errors were encountered: