diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-05-20 11:00:05 +0000 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-05-20 11:00:05 +0000 |
commit | 3ed74a342d389e4fa6f8507a983d29a1ac95862a (patch) | |
tree | 597cbbfea755934db8d7aed8b916c4b2fc7a2b92 /application.rb | |
parent | 0b64779ad95c7db741ef68a36a58b1fa3f7f5cac (diff) | |
parent | fafc707b60a1d093a8c26313cd7fc28ae6a54696 (diff) |
Merge branch 'hotfix/rest_predicted_dependent' into development
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/application.rb b/application.rb index ba3c1a1..8c241b4 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 |