Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/refactor: improve middleware filter #140

Merged
merged 2 commits into from
May 1, 2023
Merged

fix/refactor: improve middleware filter #140

merged 2 commits into from
May 1, 2023

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented May 1, 2023

Previously, the middleware filter was skipping on populating state for the logout route. This was because "logo", which was for the site logo, mistakenly added the logout route to the skip list.

This change ensures the ctx.state object is populated in the logout route and dynamically sets the skip list by whether the incoming request is a Fresh keepalive or static file request.

@iuioiua iuioiua merged commit a52c170 into main May 1, 2023
@iuioiua iuioiua deleted the fix-logout branch May 1, 2023 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant