Skip to content

Commit

Permalink
Merge pull request #113 from miknight/master
Browse files Browse the repository at this point in the history
Encode extra_params to handle spaces.
  • Loading branch information
degemer authored Dec 13, 2016
2 parents fd48f50 + 13444cf commit ca998bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dogapi/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def prepare_params(extra_params, with_app_key)
params = { api_key: @api_key }
params[:application_key] = @application_key if with_app_key
params = extra_params.merge params unless extra_params.nil?
qs_params = params.map { |k, v| k.to_s + '=' + v.to_s }
qs_params = params.map { |k, v| CGI.escape(k.to_s) + '=' + CGI.escape(v.to_s) }
qs = '?' + qs_params.join('&')
qs
end
Expand Down

0 comments on commit ca998bc

Please sign in to comment.