Skip to content

Commit

Permalink
chore: typo, responseCookes to responseCookies
Browse files Browse the repository at this point in the history
  • Loading branch information
wan2land committed Jan 16, 2024
1 parent dc39448 commit 6e52f7e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ export class MutableRequestCookiesAdapter {
cookies: RequestCookies,
onUpdateCookies?: (cookies: string[]) => void
): ResponseCookies {
const responseCookes = new ResponseCookies(new Headers())
const responseCookies = new ResponseCookies(new Headers())
for (const cookie of cookies.getAll()) {
responseCookes.set(cookie)
responseCookies.set(cookie)
}

let modifiedValues: ResponseCookie[] = []
Expand All @@ -113,7 +113,7 @@ export class MutableRequestCookiesAdapter {
staticGenerationAsyncStore.pathWasRevalidated = true
}

const allCookies = responseCookes.getAll()
const allCookies = responseCookies.getAll()
modifiedValues = allCookies.filter((c) => modifiedCookies.has(c.name))
if (onUpdateCookies) {
const serializedCookies: string[] = []
Expand All @@ -127,7 +127,7 @@ export class MutableRequestCookiesAdapter {
}
}

return new Proxy(responseCookes, {
return new Proxy(responseCookies, {
get(target, prop, receiver) {
switch (prop) {
// A special symbol to get the modified cookie values
Expand Down

0 comments on commit 6e52f7e

Please sign in to comment.