From be7599f53635b8b9ecc1b53bfce84ed38e083cab Mon Sep 17 00:00:00 2001 From: Abdulrahman Khalil Date: Tue, 8 Oct 2019 05:44:54 +0300 Subject: [PATCH] Make the header check case insensitive (#223) --- lib/googleauth/compute_engine.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/googleauth/compute_engine.rb b/lib/googleauth/compute_engine.rb index a3b0eb8..9ca243a 100644 --- a/lib/googleauth/compute_engine.rb +++ b/lib/googleauth/compute_engine.rb @@ -75,7 +75,6 @@ module Google req.options.timeout = 0.1 end return false unless resp.status == 200 - return false unless resp.headers.key? "Metadata-Flavor" resp.headers["Metadata-Flavor"] == "Google" rescue Faraday::TimeoutError, Faraday::ConnectionFailed false