Account for old ruby versions in Request