diff options
author | mr <mr@mrautenberg.de> | 2011-05-23 13:36:00 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-05-23 13:36:00 +0200 |
commit | 8662d0b2f43758d9dcbff753bdaea18775cd1877 (patch) | |
tree | 2127ece45a628e7317ae9ff0ec6e03214f984505 /application.rb | |
parent | fa7f4a4825af56d885c07ab537c10e2f82932fc1 (diff) | |
parent | ed554e46554f05c37df1f2f51923eb986761d93d (diff) |
Merge branch 'master' of github.com:opentox/model
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 79cddf0..96c6267 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 |