fix: sanitize headers before adding to map

This commit is contained in:
Stavros
2025-06-15 19:50:33 +03:00
parent 282cabf4dd
commit aeb93da378

View File

@@ -186,7 +186,7 @@ func ParseHeaders(headers []string) map[string]string {
log.Warn().Str("header", header).Msg("Invalid header format, skipping")
continue
}
headerMap[headerSplit[0]] = headerSplit[1]
headerMap[headerSplit[0]] = SanitizeHeader(headerSplit[1])
}
// Return the header map