Bug #328
Set Content-Type header when rendering Unattended Install scripts
| Status: | Closed | Start: | 06/23/2010 | |
|---|---|---|---|---|
| Priority: | Low | Due date: | ||
| Assigned to: | % 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 ;)
Associated revisions
Revision d8dd4f92054c1c2d8ee1c8372c44974e1c649836
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 ;)
