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
Updated by Jon Fautley over 14 years ago
- File 0001-Set-Content-Type-HTTP-header-when-rendering-unattend.patch 0001-Set-Content-Type-HTTP-header-when-rendering-unattend.patch added
First time with Git, please be gentle ;)
Updated by Ohad Levy over 14 years ago
- Status changed from New to Closed
- Target version set to 0.1-6
Actions