diff options
author | Christoph Helma <helma@in-silico.ch> | 2013-07-02 19:21:32 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2013-07-02 19:21:32 +0200 |
commit | 0902d0fbd9eb929ad4056e1653ffb9521f23b518 (patch) | |
tree | 4b66c93159c026c6bf1f5178552aa074bf14f8f7 | |
parent | 3b4825adc77427e16a53145b281376c1ff4de7b2 (diff) |
content type for png images returned
-rw-r--r-- | application.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/application.rb b/application.rb index fa7de93..225280f 100644 --- a/application.rb +++ b/application.rb @@ -52,6 +52,7 @@ module OpenTox end get %r{/compound/(.+)/image} do |inchi| # catches all remaining get requests + response['Content-Type'] = 'image/png' obconversion @inchi, "inchi", "png" end |