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>
pull/746/head
LI Tongyu 4 years ago committed by GitHub
parent 1f265a1590
commit f8eeb9f388
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      transport/http/server.go

@ -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…
Cancel
Save