Remove unnecessary chunk transfer encoding header.

This commit is contained in:
Eric Peterson
2021-01-15 19:17:01 +01:00
parent 8d950d0ae7
commit ce9d5ac220
@@ -169,12 +169,7 @@ export class GoogleGCSPublish implements PublisherBase {
// Files with different extensions (CSS, HTML) need to be served with different headers
const fileExtension = path.extname(filePath);
const responseHeaders = getHeadersForFileExtension(fileExtension);
res.writeHead(200, {
...{
'Transfer-Encoding': 'chunked',
},
...responseHeaders,
});
res.writeHead(200, responseHeaders);
// Pipe file chunks directly from storage to client.
this.storageClient