Project

General

Profile

Actions

Bug #328

closed

Set Content-Type header when rendering Unattended Install scripts

Added by Jon Fautley over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Unattended installations
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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

set-unattended-content-type.patch set-unattended-content-type.patch 594 Bytes Patch against app/controllers/unattended_controller.rb to add Content-Type HTTP header Jon Fautley, 06/23/2010 09:07 AM
0001-Set-Content-Type-HTTP-header-when-rendering-unattend.patch 0001-Set-Content-Type-HTTP-header-when-rendering-unattend.patch 1011 Bytes Git Formatted Patch Jon Fautley, 06/23/2010 10:01 AM
Actions

Also available in: Atom PDF