added accept header, fix for getting attachments with documents