fixed request operation encoding

This commit is contained in:
Fabian 2020-03-06 11:06:47 +01:00 committed by GitHub
parent 72ec31bc0b
commit ddc8e9c46f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}