summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2010-05-12 12:31:39 +0200
committerChristoph Helma <helma@in-silico.ch>2010-05-12 12:31:39 +0200
commitfc0ed55e161ccad2101f8c568f22fa76de8e22bb (patch)
treed455c02578321be4818121c2a41da8641760bbab
parent311bfa78c79fa537b5c92b10aecda3e3dfc4e17f (diff)
Modification for new RestClient: body instead of to_s
-rw-r--r--application.rb2
1 files changed, 1 insertions, 1 deletions
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