From ddc8e9c46f2509c8127712c5614e51ae392bcd59 Mon Sep 17 00:00:00 2001 From: Fabian <46140201+phin1x@users.noreply.github.com> Date: Fri, 6 Mar 2020 11:06:47 +0100 Subject: [PATCH] fixed request operation encoding --- reqest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reqest.go b/reqest.go index 69f78ef..c614c3e 100644 --- a/reqest.go +++ b/reqest.go @@ -47,7 +47,7 @@ func (r *Request) Encode() ([]byte, error) { return nil, err } - if err := binary.Write(buf, binary.BigEndian, r.Operation); err != nil { + if err := binary.Write(buf, binary.BigEndian, int16(r.Operation)); err != nil { return nil, err }