Skip to content

Commit

Permalink
LLLLLLLLLLoop pepega
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekg999 committed Sep 28, 2024
1 parent 999d33a commit 6f1557d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hook/handlers/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 6f1557d

Please sign in to comment.