summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--application.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/application.rb b/application.rb
index bb16e19..8dbd9fb 100644
--- a/application.rb
+++ b/application.rb
@@ -74,8 +74,8 @@ get '/:id/?' do
response['Content-Type'] = 'application/rdf+xml'
t = OpenTox::Task.new task.uri
t.add_metadata task.metadata
- t.add_error_report task.errorReport if task.errorReport
- halt code, t.to_rdfxml
+ t.add_error_report task.errorReport
+ halt t.to_rdfxml
when /text\/uri\-list/
response['Content-Type'] = 'text/uri-list'
halt code, task.resultURI
@@ -84,6 +84,7 @@ get '/:id/?' do
end
end
+
# Get Task properties. Works for
# - /task/id
# - /task/uri