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:
parent
1f265a1590
commit
f8eeb9f388
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user