Modified: branches/packs/app/controllers/resources_controller.rb (3620 => 3621)
--- branches/packs/app/controllers/resources_controller.rb 2013-08-13 13:11:01 UTC (rev 3620)
+++ branches/packs/app/controllers/resources_controller.rb 2013-08-21 13:37:13 UTC (rev 3621)
@@ -60,7 +60,13 @@
return
end
- send_data(resource.content_blob.data, :type => resource.content_type)
+ # FIXME: This needs to support 406
+
+ if resource.is_proxy
+ redirect_to resource.proxy_for.uri.to_s, :status => 303
+ else
+ send_data(resource.content_blob.data, :type => resource.content_type)
+ end
end
def post