Skip to content
Open
Changes from 1 commit
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
Next Next commit
Fix frozen string literal issue
To prepare for ruby 3.4.0 and making strings frozen by default, we add `+` operator to make the string mutable
  • Loading branch information
chaadow committed Apr 14, 2025
commit a8ae5d6e86fbdef1403e2e6d0b915a2f25d5b831
2 changes: 1 addition & 1 deletion lib/ruby_http_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def build_args(args)
# - The final url string
#
def build_url(query_params: nil)
url = [add_version(''), *@url_path].join('/')
url = [add_version(+''), *@url_path].join('/')
url = build_query_params(url, query_params) if query_params
URI.parse("#{@host}#{url}")
end
Expand Down