From 911e9fa5aeb0fedd20315e05a0af7312c16c6f8a Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Fri, 4 Oct 2013 16:40:57 -0400 Subject: [PATCH] Add space to btcd auth string. --- sockets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sockets.go b/sockets.go index 8613480..fffa3d9 100644 --- a/sockets.go +++ b/sockets.go @@ -417,7 +417,7 @@ func BtcdConnect(reply chan error) { // the Authorization header set. server := fmt.Sprintf("ws://localhost:%d/wallet", cfg.BtcdPort) 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/") if err != nil { reply <- ErrConnRefused