forked from gin-gonic/gin
-
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.
Reuse bytes when cleaning the URL paths (gin-gonic#2179)
* path: use stack buffer in CleanPath to avoid allocs in common case Sync from julienschmidt/httprouter@8222db1 * path: sync test code from httprouter * path: update path_test.go to the latest code Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
- Loading branch information
Showing
2 changed files
with
83 additions
and
15 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