Describe the bug
When you add multiple middlewares using app.UseGlobal and you have multiple routes that have the same path and the same parameters, but each route's parameter uses a different func for matching, the first middleware won't get called on routes starting from the second one. For example: https://github.com/pipe01/iris-bug/blob/master/main.go
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/pipe01/iris-buggo run ../call.shExpected behavior
The script should output
---
Called first middleware
Called second middleware
first route
---
Called first middleware
Called second middleware
second route
---
Called first middleware
Called second middleware
third route
---
Instead, it outputs:
---
Called first middleware
Called second middleware
first route
---
Called second middleware
second route
---
Called second middleware
third route
---
Desktop (please complete the following information):
Thanks a lot @pipe01! That is fixed and a test-case added, however you could just use app.Use there, UseGlobal is required if called right before Listen/Run function.
Ah I didn't know that, thank you!
No, I thank you. That was a pretty good bug report and helped me fix the bug quick!