Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
byq1 committed May 17, 2023
1 parent 3ce6853 commit 55ec7ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ func (req *Request) Text(formValues string) *Request {
return req
}

func (req *Request) CustomBody(formValues string, contentType string) *Request {
func (req *Request) CustomBody(formValues []byte, contentType string) *Request {

req.formVals = bytes.NewBuffer([]byte(formValues))
req.formVals = bytes.NewBuffer(formValues)
req.contentType = contentType

return req
Expand Down

0 comments on commit 55ec7ac

Please sign in to comment.