-
Notifications
You must be signed in to change notification settings - Fork 766
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
Middlewares are executing in reverse order #1499
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am integrating it with the Django and middleware list is not obeying the ascending order of the list. I have to add
[::-1]
to make it coherent.a github repo, https://repl.it or similar.
Create two middleware and add print statements in it. 1st indexed middleware will execute first and then followed by 0th index middleware
These two middlewares are defined as following
Output
It should run the middleware in same order as provided in the list. For example, here is the hotfix
And now the output will be accurate
It is confusing to anyone newbie (like I was just few mins ago) to find out the apparent nature
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: