mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-30 13:45:47 +00:00
feat: use decoded headers in proxy controller
This commit is contained in:
@@ -32,3 +32,13 @@ func SanitizeHeader(header string) string {
|
||||
return -1
|
||||
}, header)
|
||||
}
|
||||
|
||||
func NormalizeHeaders(headers http.Header) map[string]string {
|
||||
var result = make(map[string]string)
|
||||
|
||||
for key, values := range headers {
|
||||
result[key] = strings.Join(values, ",")
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user