lib/nightcrawler_swift/commands/download.rb in nightcrawler_swift-0.5.0 vs lib/nightcrawler_swift/commands/download.rb in nightcrawler_swift-0.6.0
- old
+ new
@@ -4,10 +4,10 @@
def execute path
if path.nil? or path.empty?
raise Exceptions::ValidationError.new "Download command requires a path parameter"
end
- response = get "#{connection.public_url}/#{options.bucket}/#{path}"
+ response = get "#{connection.internal_url}/#{options.bucket}/#{path}"
response.body
end
end
end