summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicha Rautenberg <rautenberg@in-silico.ch>2015-11-11 09:52:39 +0100
committerMicha Rautenberg <rautenberg@in-silico.ch>2015-11-11 09:52:39 +0100
commitfd34a2127ce4d3915e7d8447f987ff4a6de37fef (patch)
tree4d829235f88b931626d558db54f85e074ea3caa7
parentd2894f52a3459e37176f700896efdf32a40a5936 (diff)
unescape inchi
-rw-r--r--application.rb2
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"