Add space to btcd auth string.

This commit is contained in:
Josh Rickmar 2013-10-04 16:40:57 -04:00
parent 4857572e59
commit 911e9fa5ae

View file

@ -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