Fixing bug with Live Reload where it broadcast instead of sending the handshake - hugo - [fork] hugo port for 9front
 (HTM) git clone git@git.drkhsh.at/hugo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 79dd1d02b49bc7a296e2eb607c29192709eeab06
 (DIR) parent 57ad3abe7bcbe958450a66f6f487c05f8222cf33
 (HTM) Author: spf13 <steve.francia@gmail.com>
       Date:   Tue, 27 May 2014 18:35:12 -0400
       
       Fixing bug with Live Reload where it broadcast instead of sending the handshake
       
       Diffstat:
         M livereload/connection.go            |      10 +++++-----
       
       1 file changed, 5 insertions(+), 5 deletions(-)
       ---
 (DIR) diff --git a/livereload/connection.go b/livereload/connection.go
       @@ -35,11 +35,11 @@ func (c *connection) reader() {
                        }
                        switch true {
                        case bytes.Contains(message, []byte(`"command":"hello"`)):
       -                        wsHub.broadcast <- []byte(`{
       -                          "command": "hello",
       -                          "protocols": [ "http://livereload.com/protocols/official-7" ],
       -                          "serverName": "Hugo"
       -                          }`)
       +                        c.send <- []byte(`{
       +                                "command": "hello",
       +                                "protocols": [ "http://livereload.com/protocols/official-7" ],
       +                                "serverName": "Hugo"
       +                        }`)
                        }
                }
                c.ws.Close()