Address ActionPack head method not respecting explicitly set content-type #3436 #6198

Merged
merged 2 commits into from May 8, 2012

Projects

None yet

2 participants

@whistlerbrk

Discussion is in #3436

This allows people using the :head method to pass content_type as an option.

The other issue in #3436 is what the value should be set to by default. As I note, according to the RFC the head method content-type value should be set to the value which would be received under content-negotiation for a GET request to the same resource. As this is a much more complicated and separate issue, I do not attempt to solve it here.

@whistlerbrk

Also, I sent the pull to 3-2 stable, I can change this if desired.

@josevalim
Member

This looks good, please send a pull request for master!

@josevalim josevalim merged commit b86e0be into rails:3-2-stable May 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment