From fa07e898dbc53f2f3cd9c5740ecbb2ebd29bd649 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Mon, 9 Aug 2010 17:37:26 +0200 Subject: configuration simplified --- lib/dataset.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/dataset.rb') diff --git a/lib/dataset.rb b/lib/dataset.rb index c0f54fc..ca252a1 100644 --- a/lib/dataset.rb +++ b/lib/dataset.rb @@ -31,8 +31,7 @@ module OpenTox def self.find(uri, accept_header=nil) unless accept_header - #if uri.match(@@config[:services]["opentox-dataset"]) || uri=~ /188.40.32.88/ || uri =~ /informatik/ - if (uri.match(@@config[:services]["opentox-dataset"]) || uri =~ /in-silico.ch/) && !@@config[:accept_headers]["opentox-dataset"].grep(/yaml/).empty? + if (@@config[:yaml_hosts].include?(URI.parse(uri).host)) accept_header = 'application/x-yaml' else accept_header = "application/rdf+xml" -- cgit v1.2.3