diff --git a/lib/srfax.rb b/lib/srfax.rb index c16cb40..c9cbc3e 100644 --- a/lib/srfax.rb +++ b/lib/srfax.rb @@ -302,9 +302,9 @@ def delete_fax(descriptor, direction) # @param postVariables [String] The list of variables to apply in the POST body when executing the request. # @return [Hash] The hash payload value including a proper status. Will never return nil. def execute(postVariables) - logger.debug postVariables.merge(defaults) + logger.debug defaults.merge(postVariables) # Redirect where necessary. - res = RestClient.post(BASE_URL, postVariables.merge(defaults), { accept: :json }) + res = RestClient.post(BASE_URL, defaults.merge(postVariables), { accept: :json }) unless res.code == 200 return { 'Status' => 'Failed', 'Result' => res.body }.with_indifferent_access end diff --git a/lib/srfax/version.rb b/lib/srfax/version.rb index 8b6389b..3e6ddc7 100644 --- a/lib/srfax/version.rb +++ b/lib/srfax/version.rb @@ -1,3 +1,3 @@ module SrFax - VERSION = '0.5.3'.freeze + VERSION = '0.5.5'.freeze end