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

Fixed issue #2119: XHR without Accept and Content-Type header gets 500 error #2159

Merged
merged 1 commit into from Jul 20, 2011

Conversation

ogeidix
Copy link
Contributor

@ogeidix ogeidix commented Jul 19, 2011

Check Accept and Content-Type headers before evaluating them in xhr requests. Closes #2119

An xhr request must have an "Accept" or "Content-type" header in order to be considered a request with valid_accept_header.

…equests. Closes rails#2119

An xhr request must have an "Accept" or "Content-type" header in order to be considered a request with valid_accept_header.
spastorino added a commit that referenced this pull request Jul 20, 2011
Fixed issue #2119: XHR without Accept and Content-Type header gets 500 error
@spastorino spastorino merged commit 993d0f6 into rails:master Jul 20, 2011
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

Successfully merging this pull request may close these issues.

XHR Req without Accept and Content-Type header gets 500 error
3 participants