Fix panic due to not handling an edge case

This commit is contained in:
Jon Staab
2025-06-10 10:38:58 -07:00
committed by fiatjaf_
parent 034902c3e3
commit aa81e17e22

View File

@@ -131,7 +131,7 @@ func (rl *Relay) HandleNIP86(w http.ResponseWriter, r *http.Request) {
// assign this only if the function was defined
if mav.Field(i).Interface() != nil {
methods[i] = methodName
methods = append(methods, methodName)
}
}
resp.Result = methods