Always explictly use Net::HTTP and use #to_hash to access headers.