Set Accept header for JSON and XML types