From f5b9fe663b0950c07e49c0a37e8a6d457783a80b Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Wed, 21 Mar 2012 12:01:34 +0100 Subject: content-type fixed --- lib/opentox.rb | 5 +++-- 1 file 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 -- cgit v1.2.3