Bug #328

Set Content-Type header when rendering Unattended Install scripts

Added by Jon Fautley 2 months ago. Updated 2 months ago.

Status:Closed Start:06/23/2010
Priority:Low Due date:
Assigned to:Ohad Levy % Done:

0%

Category:Unattended installations
Target version:0.1-6
Branch:

Description

Foreman currently uses a default content-type header of text/html when rendering unattended install scripts (Kickstart, Preseed, Jumpstart). This makes viewing them in a browser irritating (need to 'View Source').

Attached is a minor patch against unattended_controller.rb to return the output as text/plain - making it easier to view in a browser, and ensuring the Content-Type header actually matches what gets returned.

My Ruby is appallingly poor, so I apologise now for the state of the patch ;)

set-unattended-content-type.patch - Patch against app/controllers/unattended_controller.rb to add Content-Type HTTP header (594 Bytes) Jon Fautley, 06/23/2010 09:07 am

0001-Set-Content-Type-HTTP-header-when-rendering-unattend.patch - Git Formatted Patch (1011 Bytes) Jon Fautley, 06/23/2010 10:01 am

Associated revisions

Revision d8dd4f92054c1c2d8ee1c8372c44974e1c649836
Added by Jon Fautley 2 months ago

fixes #238 - Set Content-Type HTTP header when rendering nattended install scripts

History

Updated by Jon Fautley 2 months ago

First time with Git, please be gentle ;)

Updated by Ohad Levy 2 months ago

  • Status changed from New to Closed
  • Target version set to 0.1-6

Also available in: Atom PDF