diff options
author | Micha Rautenberg <rautenberg@in-silico.ch> | 2015-11-11 09:52:39 +0100 |
---|---|---|
committer | Micha Rautenberg <rautenberg@in-silico.ch> | 2015-11-11 09:52:39 +0100 |
commit | fd34a2127ce4d3915e7d8447f987ff4a6de37fef (patch) | |
tree | 4d829235f88b931626d558db54f85e074ea3caa7 | |
parent | d2894f52a3459e37176f700896efdf32a40a5936 (diff) |
unescape inchi
-rw-r--r-- | application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb index b771b61..93447cf 100644 --- a/application.rb +++ b/application.rb @@ -113,7 +113,7 @@ end get %r{/compound/(.+)} do |inchi| bad_request_error "Input parameter #{inchi} is not an InChI" unless inchi.match(/^InChI=/) - compound = OpenTox::Compound.from_inchi inchi + compound = OpenTox::Compound.from_inchi URI.unescape(inchi) response['Content-Type'] = @accept case @accept when "application/json" |