mirror of
https://github.com/Hopiu/lychee.git
synced 2026-04-17 11:50:59 +00:00
Set URI to https for ErrorKind::InsecureURL (#1369)
This commit is contained in:
parent
2a95944ef5
commit
a7c36b5255
2 changed files with 2 additions and 2 deletions
|
|
@ -531,7 +531,7 @@ impl Client {
|
|||
.await
|
||||
.is_success()
|
||||
{
|
||||
Ok(Status::Error(ErrorKind::InsecureURL(uri.clone())))
|
||||
Ok(Status::Error(ErrorKind::InsecureURL(uri.to_https()?)))
|
||||
} else {
|
||||
// HTTPS is not available for this URI,
|
||||
// so the original HTTP URL is fine.
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ pub enum ErrorKind {
|
|||
MissingGitHubToken,
|
||||
|
||||
/// Used an insecure URI where a secure variant was reachable
|
||||
#[error("This URI is available in HTTPS protocol, but HTTP is provided, use '{0}' instead")]
|
||||
#[error("This URI is available in HTTPS protocol, but HTTP is provided. Use '{0}' instead")]
|
||||
InsecureURL(Uri),
|
||||
|
||||
/// Error while sending/receiving messages from MPSC channel
|
||||
|
|
|
|||
Loading…
Reference in a new issue