diff --git a/contrib/codecs/http/codecs.go b/contrib/codecs/http/codecs.go
index 2fc6005a51bf4069bd3847a8955c4d9bebcad1ae..6b870bff849185ecb2b911d6efa0ad71397bd6a2 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)
 			}