Modified: branches/showcase48/app/controllers/research_objects_controller.rb (3013 => 3014)
--- branches/showcase48/app/controllers/research_objects_controller.rb 2012-06-05 17:41:36 UTC (rev 3013)
+++ branches/showcase48/app/controllers/research_objects_controller.rb 2012-06-06 06:45:29 UTC (rev 3014)
@@ -83,7 +83,11 @@
if url
begin
- curl = Curl::Easy.http_get(url)
+ curl = Curl::Easy.new(url)
+
+ curl.follow_location = true
+
+ curl.http_get
throw Exception if curl.response_code != 200
research_object = curl.body_str
rescue