Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Implicit render should set actual content type #13484

Open
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants
Contributor

MasterLambaster commented Dec 25, 2013

Implicit render is not setting actual content type if there's been any other format rendered.
For instance:

def action
  string = render_to_string :template =>"template", :formats => [:js]
end

with test

test "content_type"
  get :action
  assert_equal "text/html", response.content_type
end

will fail and set Content-Type="text/javascript; charset=utf-8" in header, even though html is processed and rendered.

Contributor

MasterLambaster commented Apr 1, 2014

Any updates on this? Build failures does not look to be related to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment