1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Fix case sensitivity of the Content-type header.

This commit is contained in:
Ash Wilson 2014-01-31 14:39:48 -05:00 committed by Andrew Stangl
parent d45138da15
commit 5167f1f55f

View file

@ -122,7 +122,7 @@ module Fog
def self.json_response?(response)
return false unless response && response.headers
response.headers['Content-Type'] =~ %r{application/json}i ? true : false
response.get_header('Content-Type') =~ %r{application/json}i ? true : false
end
def self.normalize_url(endpoint)