diff options
author | Valery Piashchynski <[email protected]> | 2022-01-12 17:16:33 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2022-01-12 17:16:33 +0300 |
commit | 7627cb3ba0fd42592ed36bdf4de5c5af1ffa9f18 (patch) | |
tree | 62ce8ef32f63876187b773faf32b2b325458b104 /internal/protocol.go | |
parent | a191eac78092dda89dbcd19c7a3a171f6aafb71a (diff) | |
parent | a3077cf70c061234960b0f6b8a8c8e99ac2254b7 (diff) |
[#890]: feat(protocol): add codec type to the protocol structurev2.7.0
Diffstat (limited to 'internal/protocol.go')
-rwxr-xr-x | internal/protocol.go | 2 |
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 |