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
|
req.options.timeout = 0.1
|
||||||
end
|
end
|
||||||
return false unless resp.status == 200
|
return false unless resp.status == 200
|
||||||
return false unless resp.headers.key? "Metadata-Flavor"
|
|
||||||
resp.headers["Metadata-Flavor"] == "Google"
|
resp.headers["Metadata-Flavor"] == "Google"
|
||||||
rescue Faraday::TimeoutError, Faraday::ConnectionFailed
|
rescue Faraday::TimeoutError, Faraday::ConnectionFailed
|
||||||
false
|
false
|
||||||
|
|
Loading…
Reference in New Issue