summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2010-06-25 20:34:14 +0200
committermguetlein <martin.guetlein@gmail.com>2010-06-25 20:34:14 +0200
commit42610e0817b8332b46f3c81356126233cb162ee4 (patch)
tree528b2af3a7c291253af92c71467fcf2a5aadd276
parent0a67c96df794af07d685449feaa5a75ebd58520b (diff)
replace text/x-yaml with application/x-yaml
-rwxr-xr-xapplication.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/application.rb b/application.rb
index 248a2d6..9148c11 100755
--- a/application.rb
+++ b/application.rb
@@ -43,7 +43,7 @@ get '/:id' do
case params[:id]
when /.yaml$/
params[:id].sub!(/.yaml$/,'')
- accept = 'text/x-yaml'
+ accept = 'application/x-yaml'
when /.rdf$/
params[:id].sub!(/.rdf$/,'')
accept = 'application/rdf+xml'
@@ -68,7 +68,7 @@ get '/:id' do
end
dataset.owl
when /yaml/
- response['Content-Type'] = 'text/x-yaml'
+ response['Content-Type'] = 'application/x-yaml'
dataset.yaml
when /ms-excel/
require 'spreadsheet'