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:
Jan Larwig
2025-11-16 22:39:01 +01:00
parent 0eec65e230
commit 15041dd116
8 changed files with 19 additions and 8 deletions
+1 -1
View File
@@ -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
}