Skip to content

Commit

Permalink
Merge pull request #8 from ddymko/changelog-version-bump
Browse files Browse the repository at this point in the history
changelog and version bump
  • Loading branch information
ddymko authored May 10, 2019
2 parents 3ffa590 + 182a15b commit fb2b9a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Change Log

## v0.1.0 (2019-05-10)
### Features
* Initial release
* Supports all available API endpoints that Vultr has to offer
4 changes: 1 addition & 3 deletions govultr.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

const (
version = "0.0.1"
version = "0.1.0"
defaultBase = "https://api.vultr.com"
userAgent = "govultr/" + version
rateLimit = 200 * time.Millisecond
Expand Down Expand Up @@ -141,7 +141,6 @@ func (c *Client) NewRequest(ctx context.Context, method, uri string, body url.Va
}

req.Header.Add("API-key", c.APIKey.key)
// todo review the Accept and content types
req.Header.Add("User-Agent", c.UserAgent)
req.Header.Add("Accept", "application/json")

Expand All @@ -167,7 +166,6 @@ func (c *Client) DoWithContext(ctx context.Context, r *http.Request, data interf
c.onRequestCompleted(req, res)
}

//todo handle the error this might throw
defer res.Body.Close()

if err != nil {
Expand Down

0 comments on commit fb2b9a3

Please sign in to comment.