Skip to content

Commit

Permalink
strict comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
guitavano committed Sep 14, 2023
1 parent a732fb1 commit c14368c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/matchers/cookie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ export interface Props {
}

/**
* @title Cookie Matcher
* @title Cookie Matcher
*/
const MatchCookie = (
{ name, value }: Props,
{ request }: MatchContext,
) => {
const cookies = getCookies(request.headers);
return cookies[name] == value;
return cookies[name] === value;
};

export default MatchCookie;

0 comments on commit c14368c

Please sign in to comment.