Skip to content

Commit

Permalink
log prog
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekg999 committed Sep 28, 2024
1 parent e33fa51 commit dc35d7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hook/handlers/index.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package handlers

import (
"fmt"
"io"
"net/http"
"strings"
Expand Down Expand Up @@ -28,6 +29,9 @@ func Index(w http.ResponseWriter, r *http.Request) {
body = []byte{}
}

for key := range r.Header {
fmt.Println(key, ":", r.Header.Get(key))

headers := http.Header{}
for key := range response.Headers {
if !(strings.HasPrefix(key, "Cf-") || key == "Cdn-Loop" || key == "X-Real-IP" || key == "X-Forwarded-For" || key == "X-Forwarded-Proto") {
Expand Down

0 comments on commit dc35d7a

Please sign in to comment.