Skip to content

Commit

Permalink
Fix type error on build (#2251)
Browse files Browse the repository at this point in the history
  • Loading branch information
WillianAgostini authored Apr 10, 2023
1 parent 702ed35 commit af928f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ export default class Request extends Duplex implements RequestEvents<Request> {

this._stopRetry = noop;

this.on('pipe', source => {
if (source.headers) {
this.on('pipe', (source: any) => {
if (source?.headers) {
Object.assign(this.options.headers, source.headers);
}
});
Expand Down

0 comments on commit af928f6

Please sign in to comment.