Skip to content

Commit f47aa35

Browse files
committed
ensure signal
1 parent 98f9e2e commit f47aa35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/src/plugins/useUpstreamCancel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export function useUpstreamCancel(): GatewayPlugin {
66
return {
77
onFetch({ context, options, executionRequest, info }) {
88
const signals: AbortSignal[] = [];
9-
if ('request' in context) {
9+
if ('request' in context && context.request.signal) {
1010
signals.push(context.request.signal);
1111
}
1212
const execRequestSignal =

0 commit comments

Comments
 (0)