summaryrefslogtreecommitdiff
path: root/lazar.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2010-02-19 14:31:40 +0100
committerChristoph Helma <helma@in-silico.de>2010-02-19 14:31:40 +0100
commit0f8039d1f4f35857cd36cc7582014690373ea71a (patch)
tree3f4e17512004f326c67148cecb970242e1778982 /lazar.rb
parenta16fa23b2583afb84e1e60cf91588a67011ab6a4 (diff)
mime types added to response header
Diffstat (limited to 'lazar.rb')
-rw-r--r--lazar.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lazar.rb b/lazar.rb
index a76ef7c..41af168 100644
--- a/lazar.rb
+++ b/lazar.rb
@@ -1,4 +1,5 @@
get '/lazar/?' do
+ response['Content-Type'] = 'application/rdf+xml'
OpenTox::Algorithm::Lazar.new.rdf
end
@@ -96,6 +97,7 @@ post '/lazar/?' do # create a model
LOGGER.debug "Lazar task PID: " + pid.to_s
task.pid = pid
#status 303
+ response['Content-Type'] = 'text/uri-list'
task.uri
#model.uri