ping method considered harmless

This commit is contained in:
jiftechnify 2024-10-01 19:17:14 +09:00 committed by fiatjaf_
parent 1b6ac1fe0a
commit db39f79f23

View File

@ -234,6 +234,7 @@ func (p *StaticKeySigner) HandleRequest(event *nostr.Event) (
result = plaintext
case "ping":
result = "pong"
harmless = true
default:
return req, resp, eventResponse,
fmt.Errorf("unknown method '%s'", req.Method)