From 39c988fe6fc4798690c0d6a4e0fa52bb097f670b Mon Sep 17 00:00:00 2001 From: mguetlein Date: Mon, 24 Jan 2011 19:33:14 +0100 Subject: fix task-with-error-report to rdf --- application.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'application.rb') 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 -- cgit v1.2.3