From a1cbc931e26192303ba22c4879002309356aedc4 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 15 May 2024 13:37:46 +0100 Subject: [PATCH] Reducing the likelihood of validity check clashing with filename. --- packages/server/src/integrations/rest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/integrations/rest.ts b/packages/server/src/integrations/rest.ts index c908d26f73..deff7c81d0 100644 --- a/packages/server/src/integrations/rest.ts +++ b/packages/server/src/integrations/rest.ts @@ -146,7 +146,7 @@ class RestIntegration implements IntegrationBase { // the API does not follow the requirements of https://www.ietf.org/rfc/rfc2183.txt // all content-disposition headers should be format disposition-type; parameters // but some APIs do not provide a type, causing the parse below to fail - add one to fix this - if (!contentDisposition.includes(";")) { + if (!contentDisposition.includes("; ")) { contentDisposition = `attachment; ${contentDisposition}` } filename =