From f8eeb9f3882e1d00bc233b4a02449834517955e7 Mon Sep 17 00:00:00 2001 From: LI Tongyu <19409044+litongyu008@users.noreply.github.com> Date: Fri, 5 Mar 2021 16:21:23 +0800 Subject: [PATCH] fix(http): fix typo in transport/http (#741) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. modify HanldePrefix to HandlePrefix in transport/http/server.go Co-authored-by: 李彤宇 --- transport/http/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/http/server.go b/transport/http/server.go index 5d829a0bb..f17756c13 100644 --- a/transport/http/server.go +++ b/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) }