| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 01e8c15 commit 4b3bf7e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1778,7 +1778,9 @@ class ClientHttp2Session extends Http2Session { | |||
| 1778 | 1778 | const { signal } = options; | |
| 1779 | 1779 | if (signal) { | |
| 1780 | 1780 | validateAbortSignal(signal, 'options.signal'); | |
| 1781 | - const aborter = () => stream.destroy(new AbortError()); | ||
| 1781 | + const aborter = () => { | ||
| 1782 | + stream.destroy(new AbortError(undefined, { cause: signal.reason })); | ||
| 1783 | + }; | ||
| 1782 | 1784 | if (signal.aborted) { | |
| 1783 | 1785 | aborter(); | |
| 1784 | 1786 | } else { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments