Skip to content

Middleware is applied last to first #786

@wttw

Description

@wttw

I'm using a strict chi server.

ChiServerOptions takes a slice of middleware, []MiddleWareFunc. When these are applied they're chained in the order of the slice, meaning that the middleware executes last to first.

I'd expect them to be executed first to last, as most other Go middleware chains do (by iterating through the slice in reverse order).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions