uHttpSharp icon indicating copy to clipboard operation
uHttpSharp copied to clipboard

Fixed nested usage for HttpRouter handler

Open BlackZork opened this issue 6 years ago • 0 comments

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())
                )
            );

BlackZork avatar Nov 06 '19 11:11 BlackZork