Adds the option to skip TLS verification for a Gotify instance (#544)

This commit is contained in:
Sebastiaan Tammer 2020-05-22 16:02:20 +02:00 committed by GitHub
parent 10fd81a2c1
commit dccdf708a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 12 deletions

View file

@ -18,7 +18,7 @@ func init() {
lock <- true
}
// SetupHTTPUpdates configures the endopint needed for triggering updates via http
// SetupHTTPUpdates configures the endpoint needed for triggering updates via http
func SetupHTTPUpdates(apiToken string, updateFunction func()) error {
if apiToken == "" {
return errors.New("api token is empty or has not been set. not starting api")