Merge pull request #10197 from Budibase/fix/rest-pdf-support
REST PDF response support
This commit is contained in:
commit
a23d2bb730
|
@ -151,6 +151,9 @@ class RestIntegration implements IntegrationBase {
|
|||
data = data[keys[0]]
|
||||
}
|
||||
raw = rawXml
|
||||
} 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
|
||||
|
|
Loading…
Reference in New Issue