Add missing space for basic HTTP auth header.

This commit is contained in:
Josh Rickmar 2013-11-19 18:25:42 -05:00
parent 5dbf69d23e
commit 0bd877237f

View file

@ -596,7 +596,7 @@ func BtcdConnect(certificates []byte, reply chan error) {
// btcd requires basic authorization, so we use a custom config with // btcd requires basic authorization, so we use a custom config with
// the Authorization header set. // the Authorization header set.
login := cfg.Username + ":" + cfg.Password login := cfg.Username + ":" + cfg.Password
auth := "Basic" + base64.StdEncoding.EncodeToString([]byte(login)) auth := "Basic " + base64.StdEncoding.EncodeToString([]byte(login))
config.Header.Add("Authorization", auth) config.Header.Add("Authorization", auth)
// Attempt to connect to running btcd instance. Bail if it fails. // Attempt to connect to running btcd instance. Bail if it fails.