diff options
-rw-r--r-- | lib/opentox.rb | 5 |
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 |