lib/mkit/client/websocket_client.rb in mkit-0.8.0 vs lib/mkit/client/websocket_client.rb in mkit-0.9.0
- old
+ new
@@ -21,10 +21,10 @@
end
def request(request, request_data)
uri = request[:uri]
unless request[:params].nil? || request[:params].empty?
- uri = uri + '?' + request[:params].map { |k, v| "#{k}=#{v}" }.join('&')
+ uri = uri + '?' + request[:params].map { |k| "#{k}=#{request_data[k]}" }.join('&')
end
uri = ERB.new("#{@ws_url}#{uri}").result_with_hash(request_data)
case request[:verb].to_sym
when :ws_console