mirror of
https://github.com/fiatjaf/khatru.git
synced 2025-03-17 21:32:55 +01:00
wrong index
This commit is contained in:
parent
bc860ff28b
commit
36cd95a58e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user