Skip to content

Commit

Permalink
fix(cache): fix event handler integrity hash generation (#1820)
Browse files Browse the repository at this point in the history
  • Loading branch information
yassilah authored Oct 19, 2023
1 parent c4c0046 commit 3e9302a
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 @@ -258,7 +258,7 @@ export function defineCachedEventHandler<
return true;
},
group: opts.group || "nitro/handlers",
integrity: [opts.integrity, handler],
integrity: opts.integrity || hash([handler, opts]),
};

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

0 comments on commit 3e9302a

Please sign in to comment.