Skip to content

Commit 1e331ca

Browse files
authored
feat: use all header values in case multiple are appended (#83)
1 parent c247a3b commit 1e331ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

host.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ func httpRequest(ctx context.Context, m api.Module, requestOffset uint64, bodyOf
561561

562562
if plugin.LastResponseHeaders != nil {
563563
for k, v := range resp.Header {
564-
plugin.LastResponseHeaders[strings.ToLower(k)] = v[0]
564+
plugin.LastResponseHeaders[strings.ToLower(k)] = strings.Join(v, ",")
565565
}
566566
}
567567

0 commit comments

Comments
 (0)