diff options
author | Christoph Helma <ch@in-silico.ch> | 2010-02-01 16:16:21 +0100 |
---|---|---|
committer | Christoph Helma <ch@in-silico.ch> | 2010-02-01 16:16:21 +0100 |
commit | 025dcd3591216a8e1c11aebd912f364b5a022965 (patch) | |
tree | e6e4018faf23046ab94ec55992a9e4dd513ed8b6 /application.rb | |
parent | c929c58e51adf109a1ad3f5e814322ce1a2f6981 (diff) |
Accept:image/gif delivers image instead of uri
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/application.rb b/application.rb index b5b892f..3783176 100644 --- a/application.rb +++ b/application.rb @@ -17,7 +17,8 @@ get %r{/(.+)} do |inchi| # catches all remaining get requests when "chemical/x-mdl-sdfile" OpenTox::Compound.new(:inchi => inchi).sdf when "image/gif" - "#{CACTUS_URI}#{inchi}/image" + OpenTox::Compound.new(:inchi => inchi).image + #"#{CACTUS_URI}#{inchi}/image" when "text/plain" uri = File.join CACTUS_URI,inchi,"names" RestClient.get(uri).to_s |