diff options
-rw-r--r-- | application.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/application.rb b/application.rb index a77d5d3..c64d5ce 100644 --- a/application.rb +++ b/application.rb @@ -168,6 +168,10 @@ get '/:id' do response['Content-Type'] = 'application/ms-excel' File.open(file).read + when /chemical\/x-mdl-sdfile/ + response['Content-Type'] = 'chemical/x-mdl-sdfile' + YAML.load_file(@yaml_file).to_sdf + else raise OpenTox::NotFoundError.new "Content-type #{@accept} not supported." end |