mirror of
https://github.com/SphericalKat/medium.rip.git
synced 2026-10-21 01:34:22 +00:00
fix(client): add header
Signed-off-by: Sphericalkat <amolele@gmail.com>
This commit is contained in:
1 parent
219d16ea19
commit
dea9f3cfaa
1 file changed
+2
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user