Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadTahir committed Nov 22, 2023
1 parent 138ec5e commit 9c9bb9f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ func New(ctx context.Context, next http.Handler, config *Config, name string) (h
func (a *ResponseHeaderForward) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
a.next.ServeHTTP(rw, req)

for _, requestHeader := range a.requestHeaders {
headerValue := req.Header.Get(requestHeader.Name)
if headerValue == "" {
continue
}

rw.Header().Set(requestHeader.Name, headerValue)
}
// for _, requestHeader := range a.requestHeaders {
// headerValue := req.Header.Get(requestHeader.Name)
// if headerValue == "" {
// continue
// }

// rw.Header().Set(requestHeader.Name, headerValue)
// }
}

0 comments on commit 9c9bb9f

Please sign in to comment.