summaryrefslogtreecommitdiff
path: root/lib/dataset.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dataset.rb')
-rw-r--r--lib/dataset.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/dataset.rb b/lib/dataset.rb
index 84b1ec0..654a275 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"