From fc0ed55e161ccad2101f8c568f22fa76de8e22bb Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Wed, 12 May 2010 12:31:39 +0200 Subject: Modification for new RestClient: body instead of to_s --- application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application.rb b/application.rb index 9dc1a4b..390cb34 100644 --- a/application.rb +++ b/application.rb @@ -27,7 +27,7 @@ get %r{/(.+)} do |inchi| # catches all remaining get requests when "text/plain" response['Content-Type'] = "text/plain" uri = File.join CACTUS_URI,inchi,"names" - RestClient.get(uri).to_s + RestClient.get(uri).body else halt 400, "Unsupported MIME type '#{request.env['HTTP_ACCEPT']}'" end -- cgit v1.2.3