-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(router) avoid HTTP method to supersede non-plain URI
Assuming 2 APIs: * one with `methods = GET` * the other with `uris = /httpbin` And the following request: GET /httpbin/foo HTTP/1.1 Host: The router would match API 1 and discard the URI matching. However, URI matching should have a higher priority than HTTP method matching. This happens because the prefix-URI matching happens *after* plain URI and plain HTTP method matching. This patch makes sure that the URI-prefix matching happens before the "last-resort" HTTP method matching.
- Loading branch information
1 parent
a97d229
commit 4ebaa6e
Showing
2 changed files
with
42 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters