Skip to content

Commit

Permalink
fix binary data variable when taken from response (also in formdata)
Browse files Browse the repository at this point in the history
  • Loading branch information
zekroTJA committed Feb 7, 2025
1 parent a53ab53 commit 426f9b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/goatfile/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func (t *Request) InsertRawDataIntoFormData(state engine.State) error {
if !ok {
return ErrVarNotFound
}
rv := reflect.ValueOf(valeFromState)
rv := util.UnwrapPointer(reflect.ValueOf(valeFromState))
if rv.Kind() != reflect.Slice || rv.Type().Elem().Kind() != reflect.Uint8 {
return errs.WithPrefix(fmt.Sprintf("$%v :", vd.VarName), ErrNotAByteArray)
}
Expand Down

0 comments on commit 426f9b1

Please sign in to comment.