We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e84a53 commit 6457632Copy full SHA for 6457632
1 file changed
cmd/p2p/sensor/rpc.go
@@ -104,6 +104,7 @@ func handleRPC(conns *p2p.Conns, networkID uint64) {
104
return
105
}
106
107
+ r.Body = http.MaxBytesReader(w, r.Body, 5*1024*1024) // 5MB limit
108
body, err := io.ReadAll(r.Body)
109
if err != nil {
110
writeError(w, -32700, "Parse error", nil)
0 commit comments