From c9636991c4d226d0524a4b924bc5ff419925a2b8 Mon Sep 17 00:00:00 2001 From: Fabian Weber <> Date: Mon, 9 Mar 2020 11:09:16 +0100 Subject: [PATCH] fixed response encoding --- response.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/response.go b/response.go index cb3c5a2..f286cac 100644 --- a/response.go +++ b/response.go @@ -84,7 +84,7 @@ func (r *Response) Encode(data io.Writer) ([]byte, error) { continue } - values := make([]interface{}, len(r.OperationAttributes)) + values := make([]interface{}, len(attr)) for i, v := range attr { values[i] = v.Value } @@ -112,7 +112,7 @@ func (r *Response) Encode(data io.Writer) ([]byte, error) { continue } - values := make([]interface{}, len(printerAttr)) + values := make([]interface{}, len(attr)) for i, v := range attr { values[i] = v.Value } @@ -141,7 +141,7 @@ func (r *Response) Encode(data io.Writer) ([]byte, error) { continue } - values := make([]interface{}, len(jobAttr)) + values := make([]interface{}, len(attr)) for i, v := range attr { values[i] = v.Value }