fixed response encoding

This commit is contained in:
Fabian Weber 2020-03-09 11:09:16 +01:00
parent 33c6ef07ac
commit c9636991c4
1 changed files with 3 additions and 3 deletions

View File

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