Skip to content

Commit

Permalink
Merge pull request #36 from delta10/fix/add-option-for-header
Browse files Browse the repository at this point in the history
Add option for setting headers during passthrough
  • Loading branch information
bartjkdp authored Mar 6, 2024
2 parents 10b2553 + db3ec58 commit 0a5df79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/filter-proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ func main() {
r.URL.Host = backendBaseUrl.Host
r.URL.Scheme = backendBaseUrl.Scheme

log.Printf("%v", r.URL)
for headerKey, headerValue := range backend.Auth.Header {
parsedHeaderValue := utils.EnvSubst(headerValue)
r.Header.Set(headerKey, parsedHeaderValue)
}

utils.DelHopHeaders(r.Header)

Expand Down

0 comments on commit 0a5df79

Please sign in to comment.