From f31ad213f138fe1364610c60b21966b3b8e71989 Mon Sep 17 00:00:00 2001
From: a <a@tuxpa.in>
Date: Wed, 15 Nov 2023 15:53:33 -0600
Subject: [PATCH] route

---
 contrib/codecs/http/codec.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/codecs/http/codec.go b/contrib/codecs/http/codec.go
index 3bb8a3d..a6e543c 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 == "" {
-- 
GitLab