1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +02:00

fix(http): fix typo in transport/http (#741)

1. modify HanldePrefix to HandlePrefix in transport/http/server.go

Co-authored-by: 李彤宇 <litongyu@git.bilibili.co>
This commit is contained in:
LI Tongyu 2021-03-05 16:21:23 +08:00 committed by GitHub
parent 1f265a1590
commit f8eeb9f388
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,8 +87,8 @@ func (s *Server) Handle(path string, h http.Handler) {
s.router.Handle(path, h)
}
// HanldePrefix registers a new route with a matcher for the URL path prefix.
func (s *Server) HanldePrefix(prefix string, h http.Handler) {
// HandlePrefix registers a new route with a matcher for the URL path prefix.
func (s *Server) HandlePrefix(prefix string, h http.Handler) {
s.router.PathPrefix(prefix).Handler(h)
}