wrong index

This commit is contained in:
Richard Bondi 2021-02-19 09:20:04 -06:00 committed by fiatjaf
parent bc860ff28b
commit 36cd95a58e

View File

@ -98,7 +98,7 @@ func handleWebsocket(w http.ResponseWriter, r *http.Request) {
case "REQ":
var id string
json.Unmarshal(request[0], &id)
json.Unmarshal(request[1], &id)
if id == "" {
err = errors.New("REQ has no <id>")
return