Skip to content

Commit

Permalink
fix(etag): remove parts that may cause unintended behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
EdamAme-x committed Feb 12, 2025
1 parent 8340a7b commit 604061b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/etag/digest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const generateDigest = async (
stream: ReadableStream<Uint8Array> | null,
generator: (body: Uint8Array) => ArrayBuffer | Promise<ArrayBuffer>
): Promise<string | null> => {
if (!stream || !crypto || !crypto.subtle) {
if (!stream) {
return null
}

Expand Down

0 comments on commit 604061b

Please sign in to comment.