diff options
author | rautenberg <rautenberg@in-silico.ch> | 2013-10-28 13:37:40 +0100 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2013-10-28 13:37:40 +0100 |
commit | 6b201383217ac1bf5315cf735863f7360ad1973e (patch) | |
tree | 90ca871bdb78a79150f69b19557988abdb247dc8 | |
parent | 778cda094cf6aeff30c3ba289786ab659754f974 (diff) |
fix csv type for new mime-types 2.0 gem
-rw-r--r-- | helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -254,10 +254,10 @@ module OpenTox task = OpenTox::Task.run "Dataset upload", @uri do case @content_type when "text/plain", "text/turtle", "application/rdf+xml" # no conversion needed - when "text/csv" + when "text/csv", "text/comma-separated-values" @body = from_csv @body @content_type = "text/plain" - when "application/vnd.ms-excel" + when "application/vnd.ms-excel", "application/excel" from_spreadsheet Excel when "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" from_spreadsheet Excelx |