From 1d5614692e3d3e7cf0131f057d4edf7dd16ff63f Mon Sep 17 00:00:00 2001 From: Jon Fautley Date: Wed, 23 Jun 2010 09:57:51 +0100 Subject: [PATCH] Set Content-Type HTTP header when rendering unattended install scripts --- app/controllers/unattended_controller.rb | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/app/controllers/unattended_controller.rb b/app/controllers/unattended_controller.rb index e0fa19a..8d295f7 100644 --- a/app/controllers/unattended_controller.rb +++ b/app/controllers/unattended_controller.rb @@ -4,6 +4,11 @@ class UnattendedController < ApplicationController before_filter :get_host_details, :allowed_to_install? before_filter :handle_ca, :except => [:jumpstart_finish, :preseed_finish] skip_before_filter :require_ssl, :require_login + after_filter :set_ctype + + def set_ctype + headers['Content-Type'] = 'text/plain' + end def kickstart logger.info "#{controller_name}: Kickstart host #{@host.name}" -- 1.5.5.6