diff options
author | mguetlein <martin.guetlein@gmail.com> | 2010-06-28 17:15:59 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2010-06-28 17:15:59 +0200 |
commit | 6fb9ec6db40d25d2892d4d1bb9de33e56979a945 (patch) | |
tree | 0d4f56aae540b6f714cdda78b30d88e2725e4c56 /lib/rest_client_wrapper.rb | |
parent | 5cdd09a98b1edfb8be3e4693a4b129b9b35ad9f2 (diff) |
new wrapper version
Diffstat (limited to 'lib/rest_client_wrapper.rb')
-rw-r--r-- | lib/rest_client_wrapper.rb | 2 |
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 |