From 6a0d1d22b9da72bcc5187d14238be0e925e5e695 Mon Sep 17 00:00:00 2001
From: a <a@tuxpa.in>
Date: Thu, 28 Mar 2024 13:21:19 -0500
Subject: [PATCH] a

---
 contrib/codecs/http/codecs.go | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/contrib/codecs/http/codecs.go b/contrib/codecs/http/codecs.go
index 2fc6005..6b870bf 100644
--- a/contrib/codecs/http/codecs.go
+++ b/contrib/codecs/http/codecs.go
@@ -109,12 +109,8 @@ func NewPostCodec(w http.ResponseWriter, r *http.Request) (*HttpCodec, error) {
 	}
 	c.msgs = serverutil.ParseBundle(data)
 
-	pathMethod := strings.TrimPrefix(r.URL.Path, "/")
 	for _, v := range c.msgs.Messages {
 		if v != nil {
-			if v.Method == "" {
-				v.Method = pathMethod
-			}
 			if v.ID == nil {
 				v.ID = jsonrpc.NewId(1)
 			}
-- 
GitLab