From ebf75f43def64d87821a60db5933f74e81e2136e Mon Sep 17 00:00:00 2001 From: Kyle Rames Date: Fri, 1 Mar 2013 10:26:47 -0600 Subject: [PATCH] [rackspace|databases] removed trailing stash from hard coded endpoints; added accept header --- lib/fog/rackspace/databases.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/fog/rackspace/databases.rb b/lib/fog/rackspace/databases.rb index 6873f85c4..cb42fa580 100644 --- a/lib/fog/rackspace/databases.rb +++ b/lib/fog/rackspace/databases.rb @@ -8,9 +8,9 @@ module Fog class InternalServerError < Fog::Rackspace::Errors::InternalServerError; end class BadRequest < Fog::Rackspace::Errors::BadRequest; end - DFW_ENDPOINT = 'https://dfw.databases.api.rackspacecloud.com/v1.0/' - LON_ENDPOINT = 'https://lon.databases.api.rackspacecloud.com/v1.0/' - ORD_ENDPOINT = 'https://ord.databases.api.rackspacecloud.com/v1.0/' + DFW_ENDPOINT = 'https://dfw.databases.api.rackspacecloud.com/v1.0' + LON_ENDPOINT = 'https://lon.databases.api.rackspacecloud.com/v1.0' + ORD_ENDPOINT = 'https://ord.databases.api.rackspacecloud.com/v1.0' requires :rackspace_api_key, :rackspace_username recognizes :rackspace_auth_url @@ -82,6 +82,7 @@ module Fog response = @connection.request(params.merge!({ :headers => { 'Content-Type' => 'application/json', + 'Accept:' => 'application/json', 'X-Auth-Token' => @auth_token }.merge!(params[:headers] || {}), :host => @host,