Use default client rather than a new client instance.

This commit is contained in:
Burcu Dogan
2014-07-14 10:26:21 -07:00
parent 648dd50ab3
commit 6b4f2ed2ce
3 changed files with 3 additions and 4 deletions

3
jwt.go
View File

@@ -100,8 +100,7 @@ func (c *JWTConfig) FetchToken(existing *Token) (token *Token, err error) {
v.Set("assertion", payload)
// Make a request with assertion to get a new token.
client := http.Client{}
resp, err := client.PostForm(c.aud, v)
resp, err := http.DefaultClient.PostForm(c.aud, v)
if err != nil {
return nil, err
}