From 6791c9c2468c40bf37161f0f712854acda7e6fef Mon Sep 17 00:00:00 2001 From: gebele Date: Mon, 14 Oct 2013 14:56:57 +0200 Subject: fixed typo --- lib/opentox.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/opentox.rb b/lib/opentox.rb index b99fe92..d7985ab 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -38,7 +38,7 @@ module OpenTox request.env['HTTP_ACCEPT'] = "text/turtle" if request.env['HTTP_ACCEPT'].size==0 or request.env['HTTP_ACCEPT']=~/\*\/\*/ @accept = request.env['HTTP_ACCEPT'] - request.content_type ? response['Content-Type'] = request.content_type : response['Content-Type'] = request.env['HTTP_ACCEPT'] + request.content_type ? response['Content_Type'] = request.content_type : response['Content_Type'] = request.env['HTTP_ACCEPT'] parse_input if request.request_method =~ /POST|PUT/ Authorization.check_policy(@uri) if env['REQUEST_METHOD'] == "PUT" && $aa[SERVICE.to_sym][:uri] && $aa[SERVICE.to_sym] response['Content-Type'] = @accept -- cgit v1.2.3