middleware stacking bug fix

This commit is contained in:
2025-08-16 19:25:00 +05:30
parent 5885b42816
commit ec4a0ac231
4 changed files with 19 additions and 23 deletions

View File

@@ -256,7 +256,7 @@ func TestStack(t *testing.T) {
})
middlewares := []func(http.Handler) http.Handler{middleware1, middleware2}
stacked := stack(middlewares, handler)
stacked := stack(handler, middlewares)
w := httptest.NewRecorder()
r := httptest.NewRequest(http.MethodGet, "/", nil)