Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-bronnikov committed Feb 20, 2025
1 parent ac29f4c commit f4534b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/server/web/proxy/x_custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ func getXCustomHandler(prod bool) gin.HandlerFunc {
r.RequestURI = target.RequestURI()
r.Host = target.Host
r = r.WithContext(ctx)

r.Header.Del("X-Amzn-Trace-Id")
r.Header.Del("X-Forwarded-For")
r.Header.Del("X-Forwarded-Port")
r.Header.Del("X-Forwarded-Proto")

dumpB, _ := httputil.DumpRequest(r, true)
fmt.Println("=======dumpB===========")
fmt.Println(string(dumpB))
Expand Down

0 comments on commit f4534b1

Please sign in to comment.