Bug 1006559 - Path /lobster by the Rack app generated by the cartridge yields incorrect content type
Summary: Path /lobster by the Rack app generated by the cartridge yields incorrect con...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Michal Fojtik
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-10 20:00 UTC by Hiro Asari
Modified: 2015-05-14 23:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-03 20:33:55 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.