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

Commit

Permalink
Fix length property call on arrayBuffer instance
Browse files Browse the repository at this point in the history
  • Loading branch information
philipatkinson committed Mar 25, 2022
1 parent d1a091e commit c1e94c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
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 c1e94c8

Please sign in to comment.