Skip to content

Fixed nested usage for HttpRouter handler#30

Open
BlackZork wants to merge 4 commits intoCode-Sharp:masterfrom
BlackZork:master
Open

Fixed nested usage for HttpRouter handler#30
BlackZork wants to merge 4 commits intoCode-Sharp:masterfrom
BlackZork:master

Conversation

@BlackZork
Copy link

This change fixes HttpRouter to pick correct value from context.Request.RequestParameters when there are multiple nested routers for subpath resolution like this:

           server.Use(new HttpRouter()
                .With("main", new HttpRouter()
                    .With("somepath", new SomePathHandler())
                )
            );

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant