Skip to content

Redirect slashes middleware should be documented to be incompatible with http.FileServer #343

Description

@nhooyr

// RedirectSlashes is a middleware that will match request paths with a trailing

http.FileServer will redirect requests for a directory without the trailing slash to include the trailing slash. If a chi user has enabled the redirect slashes middleware, that will then redirect the request back and so on.

This edge case should be documented.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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