summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2012-03-21 12:01:34 +0100
committerChristoph Helma <helma@in-silico.ch>2012-03-21 12:01:34 +0100
commitf5b9fe663b0950c07e49c0a37e8a6d457783a80b (patch)
tree58d843ca7d61643b8176f217540343917f238312
parent716c86b9529e6abd5d3e911d1da3a5168e0e5222 (diff)
content-type fixed
-rw-r--r--lib/opentox.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb
index fbdca32..e3c1f3b 100644
--- a/lib/opentox.rb
+++ b/lib/opentox.rb
@@ -29,8 +29,9 @@ module OpenTox
end
error do
+ # TODO: convert to OpenTox::Error and set URI
error = request.env['sinatra.error']
- error.uri = uri
+ #error.uri = uri
if error.respond_to? :report
# Errors are formated according to acccept-header
case @accept
@@ -46,7 +47,7 @@ module OpenTox
body = error.report.to_turtle
end
else
- content_type "text/plain"
+ response['Content-Type'] = "text/plain"
body = error.message
body += "\n#{error.backtrace}"
end