Skip to content

Commit

Permalink
Fix POSTing stats updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ewohltman committed Apr 15, 2020
1 parent 3cd87a4 commit 41c0d62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/discordbotsgg/discordbotsgg.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ func (client *Client) doPostRequest(ctx context.Context, queryURL string, reques
}

req.Header.Set("Authorization", client.APIToken)
req.Header.Set("Content-Type", "application/json")
req.ContentLength = int64(len(objectBytes))

return client.doRequest(req, responseObject)
}
Expand Down

0 comments on commit 41c0d62

Please sign in to comment.