From fd34a2127ce4d3915e7d8447f987ff4a6de37fef Mon Sep 17 00:00:00 2001 From: Micha Rautenberg Date: Wed, 11 Nov 2015 09:52:39 +0100 Subject: unescape inchi --- application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3