Bug 1006559

Summary: Path /lobster by the Rack app generated by the cartridge yields incorrect content type
Product: OpenShift Online Reporter: Hiro Asari <hasari>
Component: ContainersAssignee: Michal Fojtik <mfojtik>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 2.xCC: jkeck, mfojtik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-03 20:33:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Hiro Asari 2013-09-10 20:00:27 UTC
Description of problem:

Content-Type header for the path '/lobster' for the Ruby app generated by the cartridge is "text/plain" rather than "text/html".


Version-Release number of selected component (if applicable):


How reproducible:
Always


Steps to Reproduce:
1. rhc app create rack ruby-1.9
2. curl -I http://rack-*.dev.rhcloud.com/lobster | grep 

Actual results:
Content-Type: text/plain; charset=UTF-8

Expected results:
Content-Type: text/html; charset=UTF-8

Additional info:
The browser will show all the HTML markups

Comment 1 Hiro Asari 2013-09-10 20:30:21 UTC
Not sure where the content type is coming.

https://github.com/rack/rack/blob/1.5.2/lib/rack/lobster.rb#L29

Comment 2 Michal Fojtik 2013-09-20 14:17:52 UTC
I'm not able to reproduce this on the latest devenv:

 ~ → curl -I http://rack-mfojtik.dev.rhcloud.com/lobster | grep 'Content-Type'
Content-Type: text/html; charset=UTF-8

Comment 3 Hiro Asari 2013-10-03 20:33:55 UTC
I can't reproduce this, either.