Skip to content

Commit 853702c

Browse files
committed
chore: add rejectUnauthorized
1 parent ce5d94b commit 853702c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/nodes/Web.HttpRequest.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ type P = {
2424
timeout?: number;
2525
ca?: string;
2626
ciphers?: string;
27+
rejectUnauthorized?: boolean;
2728
};
2829

2930
type R = Promise<unknown>;
3031

3132
export const module: ModuleDefinition<P, R> = {
32-
version: '2.7.0',
33+
version: '2.7.1',
3334
moduleName: 'Web / Http Request',
3435
description: `
3536
Sends an HTTP request using backend-powered HTTP client.
@@ -104,7 +105,11 @@ export const module: ModuleDefinition<P, R> = {
104105
ciphers: {
105106
schema: { type: 'string', optional: true },
106107
advanced: true,
107-
}
108+
},
109+
rejectUnauthorized: {
110+
schema: { type: 'boolean', optional: true },
111+
advanced: true,
112+
},
108113
},
109114
result: {
110115
async: true,
@@ -172,6 +177,7 @@ async function sendSingle(params: P, ctx: GraphEvalContext): Promise<HttpRespons
172177
connectOptions: removeUndefined({
173178
ca: params.ca ?? undefined,
174179
ciphers: params.ciphers ?? undefined,
180+
rejectUnauthorized: params.rejectUnauthorized ?? undefined,
175181
}),
176182
followRedirects: params.followRedirects,
177183
proxy: proxyUrl.trim(),

0 commit comments

Comments
 (0)