mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-17 21:32:56 +01:00
ping method considered harmless
This commit is contained in:
parent
1b6ac1fe0a
commit
db39f79f23
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user