Skip to content

inconsistent processing of server variables in gorillamux router #706

@slessard

Description

@slessard

I don't really know how to explain this issue. If an OpenAPI document has a server set to "/" then gorillamux router CANNOT find a route for a request. If an OpenAPI document has a server set to a single variable and that variable's default value is "/" then the gorillamux router CAN find a route for a request. It seems to me that these two server values should be the same when it comes to finding routes.

This issue is demonstrated in PR #705

Can you help me understand why these two test cases do not work the same?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions