Skip to content

Fix favicon-related bug in cookie-sessions example - #5414

Merged
dougwilson merged 1 commit into
expressjs:masterfrom
DmytroKondrashov:fix-bug-in-cookie-sessions-example
Feb 20, 2024
Merged

dougwilson merged 1 commit into
expressjs:masterfrom
DmytroKondrashov:fix-bug-in-cookie-sessions-example

Conversation

@DmytroKondrashov

Copy link
Copy Markdown

Added the check for /favicon request in " count" middleware. Without this check, a request to /favicon that is made by most browsers will also increment the counter. This will lead to unwanted behaviour when a reload of a page will increment the counter for 2 instead of 1.
image

@ghost ghost added examples pr labels Feb 19, 2024
@ghost
ghost force-pushed the fix-bug-in-cookie-sessions-example branch from 37d2647 to 0e3ab6e Compare February 19, 2024 21:48
@ghost
ghost merged commit 0e3ab6e into expressjs:master Feb 20, 2024
@ghost ghost mentioned this pull request Feb 26, 2024
This was referenced Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants