Skip to content

Commit db5b76a

Browse files
authored
Merge pull request #340 from superfly/master
heroku: fix error in FetchUser
2 parents 83f2c01 + d7bb89f commit db5b76a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

providers/heroku/heroku.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"net/http"
99

1010
"fmt"
11+
1112
"github.com/markbates/goth"
1213
"golang.org/x/oauth2"
1314
)
@@ -86,6 +87,7 @@ func (p *Provider) FetchUser(session goth.Session) (goth.User, error) {
8687
return user, err
8788
}
8889
req.Header.Set("Authorization", "Bearer "+s.AccessToken)
90+
req.Header.Set("Accept", "application/vnd.heroku+json; version=3")
8991
resp, err := p.Client().Do(req)
9092
if err != nil {
9193
if resp != nil {

0 commit comments

Comments
 (0)