add header content type for GC

This commit is contained in:
Sinh 2022-08-31 17:52:52 +07:00
parent fb104bb0bd
commit e354f157a0
2 changed files with 3 additions and 1 deletions

View File

@ -79,6 +79,9 @@ func (c *Client) CreateOrder(p CreateOrderPayload) (*CreateOrderResponseDecoded,
URL: url, URL: url,
Method: http.MethodPost, Method: http.MethodPost,
Data: pjson.ToJSONString(body), Data: pjson.ToJSONString(body),
Header: map[string]string{
"Content-Type": "application/json",
},
}, },
} }
msg, err := c.requestNats(subject.Communication.RequestHTTP, natsPayload) msg, err := c.requestNats(subject.Communication.RequestHTTP, natsPayload)

View File

@ -1 +0,0 @@
package globalcare