Skip to content

Commit

Permalink
doc: fix typo (#28817)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
well-balanced and kodiakhq[bot] committed Sep 6, 2021
1 parent 3b55a37 commit 970f85e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-routes/api-middlewares.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const setCookie = (
options.maxAge /= 1000
}

res.setHeader('Set-Cookie', serialize(name, String(stringValue), options))
res.setHeader('Set-Cookie', serialize(name, stringValue, options))
}

// pages/api/cookies.ts
Expand Down

0 comments on commit 970f85e

Please sign in to comment.