1
0
Fork 0
mirror of synced 2024-09-09 14:11:30 +12:00

Update rest.ts

This commit is contained in:
T4DT GmbH 2023-03-20 11:31:45 +01:00 committed by GitHub
parent e54173ee4c
commit 9a4ab17c53

View file

@ -150,7 +150,10 @@ class RestIntegration implements IntegrationBase {
data = data[keys[0]]
}
raw = rawXml
} else {
} else if (contentType.includes("application/pdf")) {
data = await response.arrayBuffer(); // Save PDF as ArrayBuffer
raw = Buffer.from(data);
else {
data = await response.text()
raw = data
}