You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a strange behaviour but maybe it is intended:
I have middleware A and B and C which are chained.
In middleware A all panics are cought with a defer. It calls Next() on the gin.Context
Middleware B throws a panic and thus does not call Next().
What I expect: Middleware C is not called. But actually it is called indeed. Is this supposed to be like this and why?
I found a strange behaviour but maybe it is intended:
I have middleware A and B and C which are chained.
In middleware A all panics are cought with a defer. It calls Next() on the gin.Context
Middleware B throws a panic and thus does not call Next().
What I expect: Middleware C is not called. But actually it is called indeed. Is this supposed to be like this and why?
This is middleware A:
The text was updated successfully, but these errors were encountered: