Actions
Bug #328
closedSet Content-Type header when rendering Unattended Install scripts
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 ;)
Files
Actions