fixed response encoding
This commit is contained in:
parent
33c6ef07ac
commit
c9636991c4
|
@ -84,7 +84,7 @@ func (r *Response) Encode(data io.Writer) ([]byte, error) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
values := make([]interface{}, len(r.OperationAttributes))
|
values := make([]interface{}, len(attr))
|
||||||
for i, v := range attr {
|
for i, v := range attr {
|
||||||
values[i] = v.Value
|
values[i] = v.Value
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,7 @@ func (r *Response) Encode(data io.Writer) ([]byte, error) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
values := make([]interface{}, len(printerAttr))
|
values := make([]interface{}, len(attr))
|
||||||
for i, v := range attr {
|
for i, v := range attr {
|
||||||
values[i] = v.Value
|
values[i] = v.Value
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,7 @@ func (r *Response) Encode(data io.Writer) ([]byte, error) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
values := make([]interface{}, len(jobAttr))
|
values := make([]interface{}, len(attr))
|
||||||
for i, v := range attr {
|
for i, v := range attr {
|
||||||
values[i] = v.Value
|
values[i] = v.Value
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue