Make the header check case insensitive (#223)

This commit is contained in:
Abdulrahman Khalil authored and Daniel Azuma committed 2019-10-07 19:44:54 -07:00
1 parent 356d8fcaa8
commit be7599f536
1 file changed
-1
-1
View File
@@ -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