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

Download (594 Bytes)

 
app/controllers/unattended_controller.rb 2010-06-23 08:59:19.000000000 +0100
4 4
  before_filter :get_host_details, :allowed_to_install?
5 5
  before_filter :handle_ca, :except => [:jumpstart_finish, :preseed_finish]
6 6
  skip_before_filter :require_ssl, :require_login
7
  after_filter :set_ctype
8

  
9
  def set_ctype
10
    headers['Content-Type'] = 'text/plain'
11
  end
7 12

  
8 13
  def kickstart
9 14
    logger.info "#{controller_name}: Kickstart host #{@host.name}"