Skip to content

Commit

Permalink
chore: apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Oct 18, 2023
1 parent ac52a3f commit 795b720
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/runtime/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,10 @@ export function defineCachedEventHandler<
for (const name in response.headers) {
const value = response.headers[name];
if (name === "set-cookie") {
event.node.res.appendHeader(name, splitCookiesString(value as string[]));
event.node.res.appendHeader(
name,
splitCookiesString(value as string[])
);
} else {
event.node.res.setHeader(name, value);
}

Check warning on line 416 in src/runtime/cache.ts

View check run for this annotation

Codecov / codecov/patch

src/runtime/cache.ts#L408-L416

Added lines #L408 - L416 were not covered by tests
Expand Down

0 comments on commit 795b720

Please sign in to comment.