Skip to content

Commit

Permalink
Merge pull request #58 from vincent-stytch/master
Browse files Browse the repository at this point in the history
Set `Request.GetBody` in `doRequest`
  • Loading branch information
mrz1836 authored Jun 12, 2024
2 parents 6b50666 + 92fba74 commit 490bfd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions postmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ func (client *Client) doRequest(ctx context.Context, opts parameters, dst interf
return
}
req.Body = io.NopCloser(bytes.NewBuffer(payloadData))
req.GetBody = func() (io.ReadCloser, error) {
return io.NopCloser(bytes.NewBuffer(payloadData)), nil
}
}

req.Header.Add("Accept", "application/json")
Expand Down

0 comments on commit 490bfd1

Please sign in to comment.