mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-11-02 15:15:51 +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")
|
log.Warn().Str("header", header).Msg("Invalid header format, skipping")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
headerMap[headerSplit[0]] = headerSplit[1]
|
headerMap[headerSplit[0]] = SanitizeHeader(headerSplit[1])
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return the header map
|
// Return the header map
|
||||||
|
|||||||
Reference in New Issue
Block a user