-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around set_scheme() breakage in url-2.1.1
Since url-2.1.1, Url::set_scheme() is stricter and doesn't let us change the scheme back to http/https. Work around the new behavior. The changed logic also works with url < 2.1.1. One difference from the previous version is that the string representation of the proxy URL which was given with the explicit scheme-default port in the environment (80 for http, 443 for https) will no longer contain the port number.
- Loading branch information
Showing
1 changed file
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters