summaryrefslogtreecommitdiff
path: root/lib/task.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/task.rb')
-rw-r--r--lib/task.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/task.rb b/lib/task.rb
index dbcbe59..e6fa5e1 100644
--- a/lib/task.rb
+++ b/lib/task.rb
@@ -182,7 +182,7 @@ module OpenTox
end
def load_metadata
- if (CONFIG[:yaml_hosts].include?(URI.parse(@uri).host))
+ if (CONFIG[:json_hosts].include?(URI.parse(@uri).host))
result = RestClientWrapper.get(@uri, {:accept => 'application/x-yaml'}, nil, false)
@metadata = YAML.load result.to_s
@http_code = result.code
@@ -209,7 +209,7 @@ module OpenTox
def reload( accept_header=nil )
unless accept_header
- if (CONFIG[:yaml_hosts].include?(URI.parse(uri).host))
+ if (CONFIG[:json_hosts].include?(URI.parse(uri).host))
accept_header = "application/x-yaml"
else
accept_header = 'application/rdf+xml'