Skip to content

Commit

Permalink
Fix unclosed response body.
Browse files Browse the repository at this point in the history
  • Loading branch information
brocaar committed Nov 20, 2017
1 parent a20d18c commit 40a4ca6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/config.toml
Expand Up @@ -39,4 +39,4 @@ googleAnalytics = "UA-3512995-9"
weight = 5

[params]
version = "0.14.1"
version = "0.14.2"
6 changes: 6 additions & 0 deletions docs/content/overview/changelog.md
Expand Up @@ -8,6 +8,12 @@ menu:

## Changelog

### 0.14.2

**Bugfixes:**

* Fix unclosed response body (HTTP integrations).

### 0.14.1

**Bugfixes:**
Expand Down
1 change: 1 addition & 0 deletions internal/handler/httphandler/http_handler.go
Expand Up @@ -68,6 +68,7 @@ func (h *Handler) send(url string, payload interface{}) error {
if err != nil {
return errors.Wrap(err, "http request error")
}
defer resp.Body.Close()

// check that response is in 200 range
if resp.StatusCode < 200 || resp.StatusCode >= 300 {
Expand Down

0 comments on commit 40a4ca6

Please sign in to comment.