Add missing space for basic HTTP auth header.
This commit is contained in:
parent
5dbf69d23e
commit
0bd877237f
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue