This commit is contained in:
Max Schmitt 2024-08-19 09:19:33 +02:00
parent 87e9c61540
commit 85feeb1fb8

View file

@ -553,9 +553,9 @@ export async function toClientCertificatesProtocol(certs?: BrowserContextOptions
if (!certs) if (!certs)
return undefined; return undefined;
const bufferizeContent = async (value?: string | Buffer, path?: string): Promise<Buffer | undefined> => { const bufferizeContent = async (value?: Buffer, path?: string): Promise<Buffer | undefined> => {
if (value) if (value)
return Buffer.from(value); return value;
if (path) if (path)
return await fs.promises.readFile(path); return await fs.promises.readFile(path);
}; };