summaryrefslogtreecommitdiff
path: root/lib/dataset.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2010-07-30 15:35:14 +0200
committermguetlein <martin.guetlein@gmail.com>2010-07-30 15:35:14 +0200
commit92bb08ac2e9e21a7bade2c272740fe3a1691cb85 (patch)
treef198b37e8fc1b3ee6f64c1ffed22d67c014a1e85 /lib/dataset.rb
parent5f54e69f9ed332bfb73e30bb6daed24955fe90f6 (diff)
fix dataset.find to not request yaml from ambit
Diffstat (limited to 'lib/dataset.rb')
-rw-r--r--lib/dataset.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dataset.rb b/lib/dataset.rb
index e43ce96..3efff7d 100644
--- a/lib/dataset.rb
+++ b/lib/dataset.rb
@@ -16,7 +16,7 @@ module OpenTox
unless accept_header
#if uri.match(@@config[:services]["opentox-dataset"]) || uri=~ /188.40.32.88/ || uri =~ /informatik/
- if !@@config[:accept_headers]["opentox-dataset"].grep(/yaml/).empty?
+ if uri.match(@@config[:services]["opentox-dataset"]) && !@@config[:accept_headers]["opentox-dataset"].grep(/yaml/).empty?
accept_header = 'application/x-yaml'
else
accept_header = "application/rdf+xml"