mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-10-10 08:25:39 +02:00
deref everything but now with default constants
Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
@@ -28,7 +28,7 @@ func NewRequestHeaderInjector(headers []options.Header) (alice.Constructor, erro
|
||||
func newStripHeaders(headers []options.Header) alice.Constructor {
|
||||
headersToStrip := []options.Header{}
|
||||
for _, header := range headers {
|
||||
if !ptr.Deref(header.PreserveRequestValue, false) {
|
||||
if !ptr.Deref(header.PreserveRequestValue, options.DefaultHeaderPreserveRequestValue) {
|
||||
headersToStrip = append(headersToStrip, header)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user