Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #295 from philipatkinson/master
Browse files Browse the repository at this point in the history
Fix length property call on arrayBuffer instance
  • Loading branch information
kristianfreeman committed Apr 29, 2022
2 parents d1a091e + c1e94c8 commit 821dc0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -274,7 +274,7 @@ const getAssetFromKV = async (event: Evt, options?: Partial<Options>): Promise<R

if (shouldEdgeCache) {
response.headers.set('Accept-Ranges', 'bytes')
response.headers.set('Content-Length', body.length)
response.headers.set('Content-Length', String(body.byteLength))
// set etag before cache insertion
if (!response.headers.has('etag')) {
response.headers.set('etag', formatETag(pathKey, 'strong'))
Expand Down

0 comments on commit 821dc0c

Please sign in to comment.