mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-30 06:02:05 -07:00
constants: Remove unused constants.
We may re-add MaxReplyLength later as a variable config option, similar to mammon.
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ type WSContainer struct {
|
||||
func (this WSContainer) Read(msg []byte) (int, error) {
|
||||
ty, bytes, err := this.ReadMessage()
|
||||
if ty == websocket.TextMessage {
|
||||
n := copy(msg, []byte(string(bytes)+CRLF+CRLF))
|
||||
n := copy(msg, []byte(string(bytes)+"\r\n\r\n"))
|
||||
return n, err
|
||||
}
|
||||
// Binary, and other kinds of messages, are thrown away.
|
||||
|
||||
Reference in New Issue
Block a user