Skip to content

Commit

Permalink
feat: use all header values in case multiple are appended (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilslice authored Nov 4, 2024
1 parent c247a3b commit 1e331ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host.go
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ func httpRequest(ctx context.Context, m api.Module, requestOffset uint64, bodyOf

if plugin.LastResponseHeaders != nil {
for k, v := range resp.Header {
plugin.LastResponseHeaders[strings.ToLower(k)] = v[0]
plugin.LastResponseHeaders[strings.ToLower(k)] = strings.Join(v, ",")
}
}

Expand Down

0 comments on commit 1e331ca

Please sign in to comment.