fix LOG_URLS feature

This commit is contained in:
Gianni Carafa
2023-11-08 21:37:46 +01:00
parent f728b2c1de
commit 6f4a2daeca

View File

@@ -56,7 +56,7 @@ func fetchSite(urlpath string, queries map[string]string) (string, *http.Request
return "", nil, nil, fmt.Errorf("domain not allowed. %s not in %s", u.Host, allowedDomains) return "", nil, nil, fmt.Errorf("domain not allowed. %s not in %s", u.Host, allowedDomains)
} }
if os.Getenv("LOG_URLS ") == "true" { if os.Getenv("LOG_URLS") == "true" {
log.Println(u.String() + urlQuery) log.Println(u.String() + urlQuery)
} }