From 54ef76de6d063c476c57744fde89218324c0e5ba Mon Sep 17 00:00:00 2001 From: a <a@tuxpa.in> Date: Fri, 11 Aug 2023 02:45:42 -0500 Subject: [PATCH] content type application jayson --- contrib/codecs/http/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/codecs/http/client.go b/contrib/codecs/http/client.go index a9fb41a..fa04cbb 100644 --- a/contrib/codecs/http/client.go +++ b/contrib/codecs/http/client.go @@ -125,6 +125,7 @@ func (c *Client) post(req *codec.Request) (*http.Response, error) { hreq.Header.Add(k, vv) } } + c.headers.Add("Content-Type", "application/json") return c.c.Do(hreq) } -- GitLab