commit | dc139e8a4612310304c1c71aa2b07d94ab7bdeaf | [log] [tgz] |
---|---|---|
author | jrperritt <jrperritt@gmail.com> | Wed Oct 21 10:30:48 2015 -0500 |
committer | jrperritt <jrperritt@gmail.com> | Wed Oct 21 10:30:48 2015 -0500 |
tree | 9a06d5e291585e190ecb03212c4796178a748c81 | |
parent | 8d032cb1e835a0018269de3d6b53bb24fc77a8c0 [diff] | |
parent | a979be9c5ec2eedeba76f064e53ed6e54168b256 [diff] |
Merge pull request #505 from fredipevcin/close-unauth-connection Reauth closes old unauthorized connection
diff --git a/provider_client.go b/provider_client.go index d920913..e813e0e 100644 --- a/provider_client.go +++ b/provider_client.go
@@ -192,6 +192,7 @@ if options.RawBody != nil { options.RawBody.Seek(0, 0) } + resp.Body.Close() resp, err = client.Request(method, url, options) if err != nil { return nil, fmt.Errorf("Successfully re-authenticated, but got error executing request: %s", err)