Make the header check case insensitive (#223)
This commit is contained in:
parent
356d8fcaa8
commit
be7599f536
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue