mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-29 05:05:42 +00:00
fix: sanitize headers before adding to map
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user