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 body parser middleware already in use check. #1320

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nashby
Copy link

@nashby nashby commented Jun 29, 2023

In an app that has multiple slices I noticed that BodyParser middleware added the same amount of times as the number of slices. After some investigation I ended up with this line that incorrectly checks for already added Body parser.

Make sure we check for middleware's class name as a constant, not a string since that's what we have in middleware stack.

Make sure we check for middleware's class name as a constant, not a string since
that's what we have in middleware stack.
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.

None yet

1 participant