fix(client): add header

Signed-off-by: Sphericalkat <amolele@gmail.com>
This commit is contained in:
Amogh Lele 2023-05-27 11:51:19 +05:30
parent 219d16ea19
commit dea9f3cfaa

View File

@ -66,7 +66,8 @@ func PostData(postId string) (*entities.MediumResponse, error) {
return nil, err return nil, err
} }
req.Header.Add("Content-Type", "application/json") req.Header.Add("Accept", "application/json")
req.Header.Add("Content-Type", "application/json; charset=utf-8")
res, err := client.Do(req) res, err := client.Do(req)
if err != nil { if err != nil {