From dea9f3cfaa0fe5900cb4a2c8f50cfe5366870e30 Mon Sep 17 00:00:00 2001 From: Sphericalkat Date: Sat, 27 May 2023 11:51:19 +0530 Subject: [PATCH] fix(client): add header Signed-off-by: Sphericalkat --- pkg/client/medium_client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/client/medium_client.go b/pkg/client/medium_client.go index af7ca94..55aca1b 100644 --- a/pkg/client/medium_client.go +++ b/pkg/client/medium_client.go @@ -66,7 +66,8 @@ func PostData(postId string) (*entities.MediumResponse, error) { 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) if err != nil {