From 15ee84f2bf303fbc8a4c4e91b2b3a2aadf0acdf1 Mon Sep 17 00:00:00 2001 From: a <a@tuxpa.in> Date: Thu, 22 Feb 2024 00:12:13 -0600 Subject: [PATCH] a --- contrib/codecs/http/codecs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/codecs/http/codecs.go b/contrib/codecs/http/codecs.go index e3117b9..28dec6f 100644 --- a/contrib/codecs/http/codecs.go +++ b/contrib/codecs/http/codecs.go @@ -117,6 +117,9 @@ func NewPostCodec(w http.ResponseWriter, r *http.Request) (*HttpCodec, error) { if v.Method == "" { v.Method = pathMethod } + if v.ID == nil { + v.ID = jsonrpc.NewId(1) + } } } return c, nil -- GitLab