Skip to content

Commit c5bc173

Browse files
committed
Use URI.encode_www_form to build query parameter
1 parent 78d70d9 commit c5bc173

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/line/bot/client.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,7 @@ def get_follower_ids(start: nil, limit: nil)
343343
params = { start: start, limit: limit }.compact
344344

345345
endpoint_path = "/bot/followers/ids"
346-
endpoint_path += "?" unless params.empty?
347-
endpoint_path += params.map { |key, value| "#{key}=#{value}" }.join("&")
346+
endpoint_path += "?" + URI.encode_www_form(params) unless params.empty?
348347
get(endpoint, endpoint_path, credentials)
349348
end
350349

0 commit comments

Comments
 (0)