Skip to content

Commit 4387cb3

Browse files
sendpulsesendpulse
authored andcommitted
remove debug info
1 parent 2432973 commit 4387cb3

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

api/sendpulse_api.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,7 @@ def send_request(path, method = 'GET', data = {}, use_token = true)
108108

109109
request_data = {}
110110

111-
url_param = ''
112-
data.each do |key, value|
113-
url_param += (url_param.empty?) ? '?' : '&'
114-
url_param += "#{key}=#{value}"
115-
end unless method == 'POST' || method == 'PUT'
116-
117-
uri = URI.parse("#{@url}/#{path}#{url_param}")
111+
uri = URI.parse("#{@url}/#{path}")
118112

119113
http = Net::HTTP.new(uri.host, uri.port)
120114
http.use_ssl = true if @protocol == 'https'

0 commit comments

Comments
 (0)