From 82ec30e81e4352146de6e3de668465100ef4274d Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 22 Apr 2024 11:38:28 -0300 Subject: refactor to keep the challenge status up to date --- packages/web-util/src/utils/http-impl.sw.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/web-util') diff --git a/packages/web-util/src/utils/http-impl.sw.ts b/packages/web-util/src/utils/http-impl.sw.ts index 3c4b8b587..9c820bb4b 100644 --- a/packages/web-util/src/utils/http-impl.sw.ts +++ b/packages/web-util/src/utils/http-impl.sw.ts @@ -59,6 +59,7 @@ export class BrowserFetchHttpLib implements HttpRequestLibrary { const requestTimeout = options?.timeout ?? Duration.fromMilliseconds(DEFAULT_REQUEST_TIMEOUT_MS); const requestCancel = options?.cancellationToken; + const requestRedirect = options?.redirect; const parsedUrl = new URL(requestUrl); if (this.throttlingEnabled && this.throttle.applyThrottle(requestUrl)) { @@ -115,6 +116,7 @@ export class BrowserFetchHttpLib implements HttpRequestLibrary { body: myBody, method: requestMethod, signal: controller.signal, + redirect: requestRedirect }); if (timeoutId) { -- cgit v1.2.3