heroku/hk — pull request #176 by brandur (2014-09-29 20:16:56+00:00)
Title: Authenticate like the Heroku CLI

The Heroku API accepts a number of different authentication schemes:

1. `Authorization: Bearer `
2. `Authorization: Basic ">`
3. `Authorization: Basic :">`
4. `Authorization: Basic :">`

Currently, the CLI uses the scheme 2 while hk uses scheme 3. This pull changes
hk over to the same scheme used by the CLI (that's scheme 2).

Moving over mainly carries the benefit over intermediaries being able to tell
that two authentication schemes are equivalent and consolidate them. Scheme 2
also has the nice side property of being distiguishable from scheme 4, which
helps intermediaries differentiate token-based authentication from
password-based.

I'll open an equivalent pull on the heroku.go dependency.