summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-01-12 17:00:25 +0300
committerValery Piashchynski <[email protected]>2022-01-12 17:00:25 +0300
commit78e51b60e11147d625ef08f1efac923a41bb33b2 (patch)
treefce7a2fcac9cd389b659c12a2d62f14b089083dd /internal
parenta191eac78092dda89dbcd19c7a3a171f6aafb71a (diff)
update protocol structure, use encoder
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'internal')
-rwxr-xr-xinternal/protocol.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/protocol.go b/internal/protocol.go
index c5916f22..cefd685d 100755
--- a/internal/protocol.go
+++ b/internal/protocol.go
@@ -36,7 +36,7 @@ func SendControl(rl relay.Relay, payload interface{}) error {
defer putFrame(fr)
fr.WriteVersion(fr.Header(), frame.VERSION_1)
- fr.WriteFlags(fr.Header(), frame.CONTROL)
+ fr.WriteFlags(fr.Header(), frame.CONTROL, frame.CODEC_JSON)
if data, ok := payload.([]byte); ok {
// check if payload no more that 4Gb