From 0523a68ef4f0f529c936be113f295dfba23af32f Mon Sep 17 00:00:00 2001 From: arc-alex Date: Tue, 5 Dec 2023 17:55:51 +0100 Subject: [PATCH] add options to post --- .../src/services/integration-service/HttpIntegration.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/apps/server/src/services/integration-service/HttpIntegration.ts b/apps/server/src/services/integration-service/HttpIntegration.ts index b6428df91..d29486479 100644 --- a/apps/server/src/services/integration-service/HttpIntegration.ts +++ b/apps/server/src/services/integration-service/HttpIntegration.ts @@ -85,14 +85,6 @@ export class HttpIntegration implements IIntegration { const templateUrl = parseTemplateNested(url, state || {}); const templateOptions = parseTemplateNested(options, state || {}); try { - const parsedUrl = new globalThis.URL(templateUrl); - // if (parsedUrl.protocol != 'http:') { - // logger.error(LogOrigin.Tx, `HTTP Integration: Only HTTP allowed, got ${parsedUrl.protocol}`); - // return { - // success: false, - // message: `Only HTTP allowed, got ${parsedUrl.protocol}`, - // }; - // } this.emit(templateUrl, templateOptions, method); } catch (err) { logger.error(LogOrigin.Tx, `HTTP Integration: ${err}`); @@ -114,6 +106,7 @@ export class HttpIntegration implements IIntegration { }); } else if (method === 'POST') { await got.post(path, { + body: options, retry: { limit: 0 }, }); }