mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Add abort reasons to abort controllers
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -96,7 +96,7 @@ export class CurlCommand implements ShellCommand {
|
||||
let timeoutId: ReturnType<typeof setTimeout> | undefined;
|
||||
|
||||
if (options.timeout) {
|
||||
timeoutId = setTimeout(() => controller.abort(), options.timeout * 1000);
|
||||
timeoutId = setTimeout(() => controller.abort('Request timeout'), options.timeout * 1000);
|
||||
requestInit.signal = controller.signal;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user