From ed79f5bcf8b123d5e4ab4b0020e1801df993af72 Mon Sep 17 00:00:00 2001 From: Brandur Date: Mon, 29 Sep 2014 13:18:50 -0700 Subject: [PATCH] Authenticate like the Heroku CLI This moves heroku.go over to the same authentication scheme as the Heroku CLI, which allows intermediaries to recognize when equivalent credentials are in use between different clients (say the CLI and hk for example). See heroku/hk#176 for more detailed information. --- heroku.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heroku.go b/heroku.go index 34f013a..f2ddbbd 100644 --- a/heroku.go +++ b/heroku.go @@ -152,7 +152,7 @@ func (c *Client) NewRequest(method, path string, body interface{}) (*http.Reques if ctype != "" { req.Header.Set("Content-Type", ctype) } - req.SetBasicAuth(c.Username, c.Password) + req.SetBasicAuth("", c.Password) for k, v := range c.AdditionalHeaders { req.Header[k] = v }