Skip to content

Commit

Permalink
Fix request cancellation on timeout (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
sholladay committed Feb 22, 2020
1 parent 3f3e14d commit 041e935
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -230,8 +230,9 @@ class Ky {
this._options.signal.addEventListener('abort', () => {
this.abortController.abort();
});
this._options.signal = this.abortController.signal;
}

this._options.signal = this.abortController.signal;
}

this.request = new globals.Request(this._input, this._options);
Expand Down

0 comments on commit 041e935

Please sign in to comment.