Skip to content

Commit 4c7b840

Browse files
committed
Fixes after PR review
1 parent 9820426 commit 4c7b840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/multipart/multipart.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ func (enc *Encoder) writeField(name string, value any) error {
213213
// Write slices/arrays as repeated form fields (except []byte which should
214214
// remain a single value).
215215
if rv.Kind() == reflect.Slice || rv.Kind() == reflect.Array {
216-
if rv.Kind() == reflect.Slice && rv.Type().Elem().Kind() == reflect.Uint8 {
216+
if (rv.Kind() == reflect.Slice || rv.Kind() == reflect.Array) && rv.Type().Elem().Kind() == reflect.Uint8 {
217217
// Treat []byte as a single scalar value
218218
rv = reflect.ValueOf(string(rv.Bytes()))
219219
} else {

0 commit comments

Comments
 (0)