From 2dacf5e9de91f395ea1030ce2f49eb6eb5638924 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Mon, 15 Mar 2010 09:13:33 +0100 Subject: tests for yaml representation working --- application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3