Fix logging of messages that are binary before closing their connection (#25361)
parent
1dd243cc09
commit
90070920bf
|
@ -1209,7 +1209,7 @@ const startServer = async () => {
|
||||||
|
|
||||||
ws.on('message', (data, isBinary) => {
|
ws.on('message', (data, isBinary) => {
|
||||||
if (isBinary) {
|
if (isBinary) {
|
||||||
log.debug('Received binary data, closing connection');
|
log.warn('socket', 'Received binary data, closing connection');
|
||||||
ws.close(1003, 'The mastodon streaming server does not support binary messages');
|
ws.close(1003, 'The mastodon streaming server does not support binary messages');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue