Skip to content

Commit

Permalink
Merge pull request #6 from denbite/patch-1
Browse files Browse the repository at this point in the history
fix: ensure `cacheControl` can be set for clean body
  • Loading branch information
vgrichina committed Apr 13, 2023
2 parents 7f998fa + 7009102 commit 2023b26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ router.get('/(.*)', withNear, withContractId, withAccountId, async ctx => {
if (body) {
ctx.type = contentType
ctx.body = Buffer.from(body, 'base64');
if (cacheControl) {
ctx.set('cache-control', cacheControl);
}
return;
}

Expand Down

0 comments on commit 2023b26

Please sign in to comment.