Skip to content

Commit

Permalink
handle poorly formed params better on InboundRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
pboling committed Nov 2, 2010
1 parent 9a7dbb3 commit aaec89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/remit/inbound_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def initialize(request_url, params, client, options = {})
Hash.from_url_params(params) : params
@request_url = request_url
#sort of assuming rails here, but needs to use pure ruby so it remains compatible with non-rails
@params = params.reject {|key, val| ['action','controller'].include?(key) }
@params = params.respond_to?(:reject) ? params.reject {|key, val| ['action','controller'].include?(key) } : {}
@client = client
@supplied_signature = @params[self.class::SIGNATURE_KEY]
@allow_sigv1 = options[:allow_sigv1] || false
Expand Down

0 comments on commit aaec89c

Please sign in to comment.