@@ 284,7 284,7 @@ func (e *Encoder) encode(x reflect.Value
// Create slice from array
var n = reflect.New(x.Type())
n.Elem().Set(x)
- x = reflect.Indirect(n).Slice(0, x.Len())
+ x = reflect.Indirect(x).Slice(0, x.Len())
fallthrough
case reflect.Slice:
if x.Type().Elem().Kind() == reflect.Uint8 {