diff --git a/hook/handlers/index.go b/hook/handlers/index.go index f1180e1..d6cf2b3 100644 --- a/hook/handlers/index.go +++ b/hook/handlers/index.go @@ -30,7 +30,7 @@ func Index(w http.ResponseWriter, r *http.Request) { for key := range r.Header { key_lower := strings.ToLower(key) - if strings.HasPrefix(key_lower, "cf-") || key_lower == "cdn-Loop" || key_lower == "x-real-ip" || key_lower == "x-forwarded-for" || key_lower == "x-forwarded-proto" { + if strings.HasPrefix(key_lower, "cf-") || key_lower == "cdn-loop" || key_lower == "x-real-ip" || key_lower == "x-forwarded-for" || key_lower == "x-forwarded-proto" { r.Header.Del(key) } }