Skip to content

Commit

Permalink
feat: change transfer encoding from attachment to chunked
Browse files Browse the repository at this point in the history
  • Loading branch information
dsouza95 committed Jul 5, 2024
1 parent 03b8f74 commit 4a1e1f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/backends/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Backend.prototype.serveAsset = function(asset, req, res) {
}

res.header('Content-Length', asset.size);
res.attachment(asset.filename);
res.setHeader("Transfer-Encoding", "chunked");

// Key exists
if (that.cache.has(cacheKey)) {
Expand Down

0 comments on commit 4a1e1f9

Please sign in to comment.