forked from rest-client/rest-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only prepend http:// to URI if it lacks a scheme.
Previously rest-client would add `http://` to URIs even if they had a scheme, so `ftp://example.com` would become `http://ftp//example.com`. Instead, only prepend `http://` to URIs that do not start with a scheme followed by `://`. Also add tests for this behavior, since my first attempt at this functionality would have broken URIs with a port and no scheme. Fixes rest-client#299
- Loading branch information
Showing
3 changed files
with
45 additions
and
8 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
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
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