From e910d126b452f3d9ca8a20107aee04ceece9bb11 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Wed, 14 Jul 2010 13:56:50 +0200 Subject: model creation working, validation report generation fails for large datasets --- application.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application.rb b/application.rb index 5fd664b..6a7e4c6 100644 --- a/application.rb +++ b/application.rb @@ -22,7 +22,10 @@ get %r{/(.+)} do |inchi| # catches all remaining get requests OpenTox::Compound.new(:inchi => inchi).sdf when "image/gif" response['Content-Type'] = "image/gif" - OpenTox::Compound.new(:inchi => inchi).image + OpenTox::Compound.new(:inchi => inchi).gif + when "image/png" + response['Content-Type'] = "image/png" + OpenTox::Compound.new(:inchi => inchi).png when "text/plain" response['Content-Type'] = "text/plain" uri = File.join CACTUS_URI,inchi,"names" -- cgit v1.2.3