From fafc707b60a1d093a8c26313cd7fc28ae6a54696 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Fri, 20 May 2011 10:57:47 +0000 Subject: model/:id/{predicted|dpendent} exposed through REST --- application.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'application.rb') diff --git a/application.rb b/application.rb index 866a267..72e4254 100644 --- a/application.rb +++ b/application.rb @@ -16,6 +16,7 @@ end before do @accept = request.env['HTTP_ACCEPT'] @accept = 'application/rdf+xml' if @accept == '*/*' or @accept == '' or @accept.nil? + response['Content-Type'] = @accept @id = request.path_info.match(/^\/\d+/) unless @id.nil? @id = @id.to_s.sub(/\//,'').to_i -- cgit v1.2.3