summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2011-05-05 11:50:50 +0200
committermguetlein <martin.guetlein@gmail.com>2011-05-05 11:50:50 +0200
commitce541855d49ce6d40535a4777f08d990ab7b0122 (patch)
tree9da8225176a467c25f6048bf76930295708588e2
parentda78ddf82bdc7cc56e997263a4d5a7956009e70f (diff)
bugfix for correct task status code fix
-rw-r--r--application.rb6
1 files 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\"."