Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

content_type ignored after 2.1.0 #1654

Closed
edgarjs opened this issue Oct 20, 2020 · 1 comment
Closed

content_type ignored after 2.1.0 #1654

edgarjs opened this issue Oct 20, 2020 · 1 comment

Comments

@edgarjs
Copy link

edgarjs commented Oct 20, 2020

I had this in my 2.0.8 app to set the content type:

before do
  content_type :json
end

But after updating to 2.1.0, it returns all requests as text/html.

I see that there's a new setting default_content_type in 2.1 and it's working again after I use that instead of the before filter. But shouldn't the content type be json anyways?

Thanks.

@jkowens
Copy link
Member

jkowens commented Oct 20, 2020

Hi, so that is a regression in 2.1. There is a fix on master, just needs released. See: #1647

@jkowens jkowens closed this as completed Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants