mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Fixing bug with Live Reload where it broadcast instead of sending the handshake
This commit is contained in:
parent
57ad3abe7b
commit
79dd1d02b4
1 changed files with 5 additions and 5 deletions
|
@ -35,7 +35,7 @@ func (c *connection) reader() {
|
||||||
}
|
}
|
||||||
switch true {
|
switch true {
|
||||||
case bytes.Contains(message, []byte(`"command":"hello"`)):
|
case bytes.Contains(message, []byte(`"command":"hello"`)):
|
||||||
wsHub.broadcast <- []byte(`{
|
c.send <- []byte(`{
|
||||||
"command": "hello",
|
"command": "hello",
|
||||||
"protocols": [ "http://livereload.com/protocols/official-7" ],
|
"protocols": [ "http://livereload.com/protocols/official-7" ],
|
||||||
"serverName": "Hugo"
|
"serverName": "Hugo"
|
||||||
|
|
Loading…
Reference in a new issue