From 0bd877237f69a561e7ba8fb37e608d40bc523900 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Tue, 19 Nov 2013 18:25:42 -0500 Subject: [PATCH] Add missing space for basic HTTP auth header. --- sockets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sockets.go b/sockets.go index d5d4066..a41362f 100644 --- a/sockets.go +++ b/sockets.go @@ -596,7 +596,7 @@ func BtcdConnect(certificates []byte, reply chan error) { // btcd requires basic authorization, so we use a custom config with // the Authorization header set. login := cfg.Username + ":" + cfg.Password - auth := "Basic" + base64.StdEncoding.EncodeToString([]byte(login)) + auth := "Basic " + base64.StdEncoding.EncodeToString([]byte(login)) config.Header.Add("Authorization", auth) // Attempt to connect to running btcd instance. Bail if it fails.