summaryrefslogtreecommitdiff
path: root/application.rb
diff options
context:
space:
mode:
Diffstat (limited to 'application.rb')
-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\"."