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:
parent
d45138da15
commit
5167f1f55f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue