Skip to content

Commit

Permalink
Merge pull request #3 from kypexfly/sesion-token
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
pilcrowonpaper authored Oct 14, 2024
2 parents bf9ffc0 + c79d9a1 commit 4ccc2a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/sessions/cookies/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function handleRequest(request: HTTPRequest, response: HTTPResponse): void {
// session validation
const cookies = parseCookieHeader(request.headers.get("Cookie") ?? "");
const token = cookies.get("session");
if (sessionId === null) {
if (token === null) {
response.setStatusCode(401);
return;
}
Expand Down

0 comments on commit 4ccc2a6

Please sign in to comment.