fix bug with empty result and non table result

This commit is contained in:
2025-08-06 19:17:10 +03:00
parent 84dfdd6b35
commit 35cebee819
3 changed files with 16 additions and 9 deletions

View File

@@ -28,7 +28,7 @@ func write(nid string, w http.ResponseWriter, msg *RPCResponse) error {
msg.Salt = generateSalt()
if msg.Result != nil {
msg.Checksum = generateChecksum(msg.Result)
} else {
} else if msg.Error != nil {
msg.Checksum = generateChecksum(msg.Error)
}