summaryrefslogtreecommitdiff
path: root/lib/rest_client_wrapper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rest_client_wrapper.rb')
-rw-r--r--lib/rest_client_wrapper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rest_client_wrapper.rb b/lib/rest_client_wrapper.rb
index 4f8b0ee..1282bee 100644
--- a/lib/rest_client_wrapper.rb
+++ b/lib/rest_client_wrapper.rb
@@ -110,7 +110,7 @@ module OpenTox
task = nil
case res.content_type
- when /application\/rdf\+xml|text\/x-yaml/
+ when /application\/rdf\+xml|application\/x-yaml/
task = OpenTox::Task.from_data(res, res.content_type, res.code, base_uri)
when /text\//
raise "uri list has more than one entry, should be a task" if res.content_type=~/text\/uri-list/ and