diff --git a/r_get_record_attachment.go b/r_get_record_attachment.go index 0028ab6..2368d74 100644 --- a/r_get_record_attachment.go +++ b/r_get_record_attachment.go @@ -12,7 +12,7 @@ import ( // // This returns the number of bytes written and an error if any. func (c *StoreClient) GetRecordAttachment(ctx context.Context, writer io.Writer, recordID, attachmentID uuid.UUID) (int64, error) { - req, err := c.newRequestJSON(ctx) + req, err := newRequest(ctx, c.c, "") if err != nil { return 0, err }