lib/fastly/api_client.rb in fastly-5.1.0 vs lib/fastly/api_client.rb in fastly-5.1.1
- old
+ new
@@ -303,11 +303,9 @@
def sanitize_filename(filename)
filename.gsub(/.*[\/\\]/, '')
end
def build_request_url(path, opts = {})
- # Add leading and trailing slashes to path
- path = "/#{path}".gsub(/\/+/, '/')
@config.base_url(opts[:operation]) + path
end
# Update header and query params based on authentication settings.
#