diff options
author | Christoph Helma <helma@in-silico.de> | 2010-03-15 09:13:33 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2010-03-15 09:13:33 +0100 |
commit | 2dacf5e9de91f395ea1030ce2f49eb6eb5638924 (patch) | |
tree | b8914816e302e54d0741d2eea9dce5ba7b718755 /application.rb | |
parent | 709295d23c46fa785e0fd523ba8ff0d297bb4fcd (diff) |
tests for yaml representation working
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb index f06afae..78b0626 100644 --- a/application.rb +++ b/application.rb @@ -6,7 +6,7 @@ set :lock, true CACTUS_URI="http://cactus.nci.nih.gov/chemical/structure/" get %r{/(.+)} do |inchi| # catches all remaining get requests - inchi = URI.unescape request.env['REQUEST_URI'].sub(/^\//,'').sub(/.*\/compound\//,'') # hack to avoid sinatra's URI/CGI unescaping, splitting, ..." + inchi = URI.unescape request.env['REQUEST_URI'].sub(/^\//,'').sub(/.*compound\//,'') # hack to avoid sinatra's URI/CGI unescaping, splitting, ..." case request.env['HTTP_ACCEPT'] when "*/*" response['Content-Type'] = "chemical/x-daylight-smiles" |