Merge branch 'master' of github.com:golang/oauth2

This commit is contained in:
Andrew Gerrand 2014-09-30 07:38:32 +10:00
commit c03fd6cc9b
1 changed files with 1 additions and 2 deletions

View File

@ -17,7 +17,6 @@ import (
"encoding/json"
"io/ioutil"
"net/http"
"path"
"time"
"github.com/golang/oauth2"
@ -104,7 +103,7 @@ func (c *ComputeEngineConfig) FetchToken(existing *oauth2.Token) (token *oauth2.
if c.account != "" {
account = c.account
}
u := "http://" + path.Join("metadata/computeMetadata/v1/instance/service-accounts", account, "token")
u := "http://metadata/computeMetadata/v1/instance/service-accounts/" + account + "/token"
req, err := http.NewRequest("GET", u, nil)
if err != nil {
return