We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44f27cf commit 19f935bCopy full SHA for 19f935b
lib/ruby_http_client.rb
@@ -212,8 +212,7 @@ def add_ssl(http)
212
# - Client object
213
#
214
def _(name = nil)
215
- url_path = name ? @url_path.push(name) : @url_path
216
- @url_path = []
+ url_path = name ? @url_path + [name] : @url_path
217
Client.new(host: @host, request_headers: @request_headers,
218
version: @version, url_path: url_path,
219
http_options: @http_options)
0 commit comments