fix(techdocs): Handle images and other binaries correctly in aws/gcs publishers
Closes https://github.com/backstage/backstage/issues/3990
This commit is contained in:
@@ -186,7 +186,7 @@ export class AwsS3Publish implements PublisherBase {
|
||||
fileStreamChunks.push(chunk);
|
||||
})
|
||||
.on('end', () => {
|
||||
const fileContent = Buffer.concat(fileStreamChunks).toString();
|
||||
const fileContent = Buffer.concat(fileStreamChunks);
|
||||
// Inject response headers
|
||||
for (const [headerKey, headerValue] of Object.entries(
|
||||
responseHeaders,
|
||||
|
||||
@@ -184,7 +184,7 @@ export class GoogleGCSPublish implements PublisherBase {
|
||||
fileStreamChunks.push(chunk);
|
||||
})
|
||||
.on('end', () => {
|
||||
const fileContent = Buffer.concat(fileStreamChunks).toString();
|
||||
const fileContent = Buffer.concat(fileStreamChunks);
|
||||
// Inject response headers
|
||||
for (const [headerKey, headerValue] of Object.entries(
|
||||
responseHeaders,
|
||||
|
||||
Reference in New Issue
Block a user