From 35db3a64c22d8ee51795bcd6c7c1a329c173116c Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 13 Mar 2023 20:37:25 -0300 Subject: [PATCH] be friendly to people using websocat to debug. --- src/RelayIngester.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/RelayIngester.cpp b/src/RelayIngester.cpp index dc8139a..2561816 100644 --- a/src/RelayIngester.cpp +++ b/src/RelayIngester.cpp @@ -63,6 +63,9 @@ void RelayServer::runIngester(ThreadPool::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"); }