allow signature in requestr
This commit is contained in:
parent
2335c3418c
commit
535c04be5c
@ -48,6 +48,11 @@ export async function defaultRequestHandler<T>(
|
||||
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<T>(
|
||||
|
Loading…
Reference in New Issue
Block a user