be friendly to people using websocat to debug.

This commit is contained in:
fiatjaf
2023-03-13 20:37:25 -03:00
parent e5ec135e78
commit 35db3a64c2

View File

@ -63,6 +63,9 @@ void RelayServer::runIngester(ThreadPool<MsgIngester>::Thread &thr) {
} else {
throw herr("unrecognised yesstr request");
}
} else if (msg->payload == "\n") {
// Do nothing.
// This is for when someone is just sending newlines on websocat for debugging purposes.
} else {
throw herr("unparseable message");
}