diff options
author | Florian Dold <florian@dold.me> | 2024-02-06 19:35:55 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-02-06 19:35:55 +0100 |
commit | 6c496c070d47e26034a3e2dd6d14a1a9ea42b729 (patch) | |
tree | 7d9da9321c4d6875ef068cd56b810f58a5f03914 /packages/taler-util/src/http-common.ts | |
parent | 963aef5366097bfd35647efc4d8b2ce04aa565dc (diff) | |
download | wallet-core-6c496c070d47e26034a3e2dd6d14a1a9ea42b729.tar.xz |
harness: do not follow redirects in certain tests
Diffstat (limited to 'packages/taler-util/src/http-common.ts')
-rw-r--r-- | packages/taler-util/src/http-common.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/taler-util/src/http-common.ts b/packages/taler-util/src/http-common.ts index 705881801..3973e66fb 100644 --- a/packages/taler-util/src/http-common.ts +++ b/packages/taler-util/src/http-common.ts @@ -27,7 +27,7 @@ import { } from "./index.js"; import { Logger } from "./logging.js"; import { TalerErrorCode } from "./taler-error-codes.js"; -import { Duration, AbsoluteTime } from "./time.js"; +import { AbsoluteTime, Duration } from "./time.js"; import { TalerErrorDetail } from "./wallet-types.js"; const textEncoder = new TextEncoder(); @@ -65,6 +65,12 @@ export interface HttpRequestOptions { cancellationToken?: CancellationToken; body?: string | ArrayBuffer | object; + + /** + * How to handle redirects. + * Same semantics as WHATWG fetch. + */ + redirect?: "follow" | "error" | "manual"; } /** |