This commit is contained in:
psykose 2024-11-18 18:15:42 +01:00
parent 608a47aa5d
commit ac496061cc
Signed by: psykose
SSH key fingerprint: SHA256:pRMVjV3kRB6zl+wNx+sV8KoMnPqQAW6v8dNCxsCGZv8

View file

@ -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 {