https
This commit is contained in:
parent
608a47aa5d
commit
ac496061cc
1 changed files with 2 additions and 2 deletions
|
@ -101,8 +101,8 @@ impl Client {
|
||||||
)
|
)
|
||||||
.map_err(Error::UrlParseError)?;
|
.map_err(Error::UrlParseError)?;
|
||||||
|
|
||||||
if base_url.scheme() != "http" && base_url.scheme() != "https" {
|
if base_url.scheme() != "https" {
|
||||||
return Err(Error::OtherError("url scheme is not HTTP(s)"));
|
return Err(Error::OtherError("url scheme is not HTTPS"));
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(Client {
|
Ok(Client {
|
||||||
|
|
Loading…
Reference in a new issue