Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Fix can't modify frozen String error #38

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/binance/client/rest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def initialize(api_key: '', secret_key: '',

def self.add_query_param(query, key, value)
query = query.to_s
query << '&' unless query.empty?
query << "#{Faraday::Utils.escape key}=#{Faraday::Utils.escape value}"
query += '&' unless query.empty?
query + "#{Faraday::Utils.escape key}=#{Faraday::Utils.escape value}"
end

def camelize(str)
Expand Down