middleware stacking bug fix
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user