mirror of
https://github.com/miniflux/v2.git
synced 2025-07-22 17:18:37 +00:00
Use strings.EqualFold
instead of strings.ToLower(…) ==
This commit is contained in:
parent
61af08a721
commit
4fe902a5d2
3 changed files with 6 additions and 6 deletions
|
@ -67,7 +67,7 @@ func IsHTTPS(websiteURL string) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
return strings.ToLower(parsedURL.Scheme) == "https"
|
||||
return strings.EqualFold(parsedURL.Scheme, "https")
|
||||
}
|
||||
|
||||
// Domain returns only the domain part of the given URL.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue