mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-10-22 04:32:02 +02:00
feat: migrate google used organization id and header normalization booleans to pointers
Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
@@ -54,7 +54,7 @@ func flattenHeaders(headers http.Header) {
|
||||
func stripHeaders(headers []options.Header, next http.Handler) http.Handler {
|
||||
return http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
|
||||
for _, header := range headers {
|
||||
if header.InsecureSkipHeaderNormalization {
|
||||
if ptr.Deref(header.InsecureSkipHeaderNormalization, options.DefaultInsecureSkipHeaderNormalization) {
|
||||
req.Header.Del(header.Name)
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user