From ce541855d49ce6d40535a4777f08d990ab7b0122 Mon Sep 17 00:00:00 2001 From: mguetlein Date: Thu, 5 May 2011 11:50:50 +0200 Subject: bugfix for correct task status code fix --- application.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application.rb b/application.rb index ee7bcbb..9969fd6 100644 --- a/application.rb +++ b/application.rb @@ -111,10 +111,10 @@ get '/:id/?' do halt code, t.to_rdfxml when /text\/uri\-list/ response['Content-Type'] = 'text/uri-list' - if t.hasStatus=="Completed" - halt code, t.resultURI + if task.hasStatus=="Completed" + halt code, task.resultURI else - halt code, t.uri + halt code, task.uri end else halt 400, "MIME type '"+request.env['HTTP_ACCEPT'].to_s+"' not supported, valid Accept-Headers are \"application/rdf+xml\" and \"application/x-yaml\"." -- cgit v1.2.3