Make the header check case insensitive (#223)

This commit is contained in:
Abdulrahman Khalil 2019-10-08 05:44:54 +03:00 committed by Daniel Azuma
parent 356d8fcaa8
commit be7599f536
1 changed files with 0 additions and 1 deletions

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