diff --git a/contrib/codecs/http/codec.go b/contrib/codecs/http/codec.go index 3bb8a3d4f9abccba181855de73584b5d42ca4453..a6e543c50d2be83d70eb1c7dcaed7cddde57949c 100644 --- a/contrib/codecs/http/codec.go +++ b/contrib/codecs/http/codec.go @@ -115,7 +115,7 @@ func (r *Codec) doReadGet() (msg *serverutil.Bundle, err error) { func (r *Codec) doReadRPC() (msg *serverutil.Bundle, err error) { method_up := r.r.URL.Query().Get("method") if method_up == "" { - method_up = r.r.URL.Path + method_up = strings.TrimPrefix(r.r.URL.Path, "/") } id := r.r.URL.Query().Get("id") if id == "" {