зеркало из https://github.com/github/aws-s3.git
Fixed deprecated returning to use tap instead on the Connection.url_for
Signed-off-by: designwaves <brian.bokor@designwaves.com>
This commit is contained in:
Родитель
5e6f375d38
Коммит
2b2c9800d7
|
@ -63,7 +63,7 @@ module AWS
|
|||
path = self.class.prepare_path(path)
|
||||
request = request_method(:get).new(path, {})
|
||||
query_string = query_string_authentication(request, options)
|
||||
returning "#{protocol(options)}#{http.address}#{port_string}#{path}" do |url|
|
||||
"#{protocol(options)}#{http.address}#{port_string}#{path}".tap do |url|
|
||||
url << "?#{query_string}" if authenticate
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче