lib/scrivito/controller_actions.rb in scrivito_sdk-1.0.0 vs lib/scrivito/controller_actions.rb in scrivito_sdk-1.1.0.rc1
- old
+ new
@@ -161,11 +161,11 @@
#
# @api public
#
def deliver_file
if binary = @obj.binary
- url = BinaryRouting.new(request, scrivito_engine).resolved_binary_obj_url(@obj, binary)
- redirect_to CmsRouting.match_protocol(url, request)
+ binary_routing = BinaryRouting.new(request, scrivito_engine)
+ redirect_to binary_routing.resolved_binary_obj_url(@obj, binary)
else
render text: 'Empty Blob', status: 404
end
end