Changed handling of multiple headers

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
This commit is contained in:
ItalyPaleAle 2022-10-06 19:58:45 +00:00
parent 592b1dd86b
commit a458401391
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ func (m *Middleware) evalRequest(w http.ResponseWriter, r *http.Request, meta *m
for key, value := range r.Header {
if len(value) > 0 && slices.Contains(meta.includedHeadersParsed, key) {
headers[key] = value[len(value)-1]
headers[key] = strings.Join(value, ", ")
}
}