Add space to btcd auth string.
This commit is contained in:
parent
4857572e59
commit
911e9fa5ae
1 changed files with 1 additions and 1 deletions
|
@ -417,7 +417,7 @@ func BtcdConnect(reply chan error) {
|
||||||
// the Authorization header set.
|
// the Authorization header set.
|
||||||
server := fmt.Sprintf("ws://localhost:%d/wallet", cfg.BtcdPort)
|
server := fmt.Sprintf("ws://localhost:%d/wallet", cfg.BtcdPort)
|
||||||
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, err := websocket.NewConfig(server, "http://localhost/")
|
config, err := websocket.NewConfig(server, "http://localhost/")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
reply <- ErrConnRefused
|
reply <- ErrConnRefused
|
||||||
|
|
Loading…
Reference in a new issue