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

Merged
merged 1 commit into from Jul 20, 2011

2 participants

@ogeidix

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.

@ogeidix ogeidix Check Accept and Content-Type headers before evaluating them in xhr r…
…equests. Closes #2119

An xhr request must have an "Accept" or "Content-type" header in order to be considered a request with valid_accept_header.
1ac802f
@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