Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ const normalizeOptions = (opts) => {
// remove timeout since we already used it to set our own idle timeout
delete normalized.timeout

// since opts is often passed when initiating requests, it may contain
// headers, which should not be saved in an agent
delete normalized.headers

return normalized
}

Expand Down