Skip to content

Commit

Permalink
Merge pull request #5 from ewohltman/develop
Browse files Browse the repository at this point in the history
Fix POSTing stats updates
  • Loading branch information
ewohltman authored Apr 15, 2020
2 parents 3cd87a4 + 41c0d62 commit d8669c6
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 d8669c6

Please sign in to comment.