Skip to content

Commit

Permalink
Merge pull request pinepain#14 from nelsongraca/master
Browse files Browse the repository at this point in the history
Remove Authorization Header when sending upstream
  • Loading branch information
pinepain committed Apr 18, 2019
2 parents d45a767 + f224eed commit 6f76521
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ldap_auth_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ func (p *LDAPAuthProxy) Proxy(w http.ResponseWriter, r *http.Request) {
return
}

//Remove Authorization header when forwarding upstream
r.Header.Del("Authorization")
p.serveMux.ServeHTTP(w, r)
}

Expand Down

0 comments on commit 6f76521

Please sign in to comment.