summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2011-01-24 19:33:14 +0100
committermguetlein <martin.guetlein@gmail.com>2011-01-24 19:33:14 +0100
commit39c988fe6fc4798690c0d6a4e0fa52bb097f670b (patch)
tree0c414faf0a41690536c17b4007fed7b83d70c996
parent4c845ae7305fd5c71f79747f5f7d963edd4f4d22 (diff)
fix task-with-error-report to rdf
-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