summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index 66dc655..ce58606 100644
--- a/main.go
+++ b/main.go
@@ -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.")