diff options
author | rautenberg <rautenberg@in-silico.ch> | 2012-04-25 10:50:39 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2012-04-25 10:50:39 +0200 |
commit | 4f82f43d02b40809f6bff5763c694a9816f546d4 (patch) | |
tree | acea50df3d51c180b4e48b62cf8108b06f819ed8 /application.rb | |
parent | 782fbe9454be9593263d27f6ce069d2ad0638894 (diff) |
fix content-type for json
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb index 4df696c..bda0ff9 100644 --- a/application.rb +++ b/application.rb @@ -185,7 +185,7 @@ get '/:id' do send_file file, :type => 'application/rdf+xml' when /json/ - send_file @json_file, :type => 'application/x-yaml' + send_file @json_file, :type => 'application/json' when /yaml/ file = "#{@@datadir}/#{params[:id]}.yaml" |