branch: externals/websocket commit f902bc04dbc5431771a2b9c33899152f57e6152f Author: Andrew Hyatt <ahy...@gmail.com> Commit: Andrew Hyatt <ahy...@gmail.com>
* websocket.el: Fix process-coding-system for client connections. We previously set the coding-system to unix for encoding and decoding, then overwrote it with binary for encoding but not decoding. I don't know why that happened, now we'll just set the coding system to binary for encoding and decoding, which fixes an issue with connections on Windows. --- websocket.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/websocket.el b/websocket.el index 7ba3a537f4..d07d870d7a 100644 --- a/websocket.el +++ b/websocket.el @@ -840,10 +840,9 @@ connection, which should be kept in order to pass to :extensions (mapcar 'car (process-get server :extensions))))) (unless (member ws websocket-server-websockets) (push ws websocket-server-websockets)) - (set-process-coding-system client 'unix 'unix) (process-put client :websocket ws) (set-process-filter client 'websocket-server-filter) - (set-process-coding-system client 'binary) + (set-process-coding-system client 'binary 'binary) (set-process-sentinel client (lambda (process change) (let ((websocket (process-get process :websocket)))