now works with httr >= 3.0