diff --git a/packages/web-util/src/utils/request.ts b/packages/web-util/src/utils/request.ts index 7f7063a23..1464eca98 100644 --- a/packages/web-util/src/utils/request.ts +++ b/packages/web-util/src/utils/request.ts @@ -48,6 +48,11 @@ export async function defaultRequestHandler( requestHeaders["Content-Type"] = options.contentType === "json" ? "application/json" : "text/plain"; + if (options.talerAmlOfficerSignature) { + requestHeaders["Taler-AML-Officer-Signature"] = + options.talerAmlOfficerSignature; + } + const requestMethod = options?.method ?? "GET"; const requestBody = options?.data; const requestTimeout = options?.timeout ?? 5 * 1000; @@ -269,6 +274,7 @@ export interface RequestOptions { params?: unknown; timeout?: number; contentType?: "text" | "json"; + talerAmlOfficerSignature?: string; } async function buildRequestOk(