Skip to content

Commit

Permalink
fix: don't override integrity value
Browse files Browse the repository at this point in the history
  • Loading branch information
yassilah committed Oct 13, 2023
1 parent a4468bb commit 32b81da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export function defineCachedEventHandler<
return true;
},
group: opts.group || "nitro/handlers",
integrity: hash([opts.integrity, handler]),
integrity: opts.integrity || hash(handler),
};

const _cachedHandler = cachedFunction<ResponseCacheEntry<Response>>(
Expand Down

0 comments on commit 32b81da

Please sign in to comment.