Project

General

Profile

Bug #328 » set-unattended-content-type.patch

Patch against app/controllers/unattended_controller.rb to add Content-Type HTTP header - Jon Fautley, 06/23/2010 09:07 AM

View differences:

app/controllers/unattended_controller.rb 2010-06-23 08:59:19.000000000 +0100
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-1/2)