diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -326,7 +326,8 @@ func isValidAPIURI(uri string) bool { return true } if bytes.HasPrefix([]byte(uri), []byte("http://")) { - if os.Getenv("INSECURE_API") == "true" { + insec := os.Getenv("INSECURE_API") + if strings.ToLower(insec) == "true" { return true } else { log.Println("ERROR: Please pass INSECURE_API=true if you need to use a http:// endpoint.") |