rails/rails — pull request #6198 by whistlerbrk (2012-05-08 00:27:39+00:00)
Title: Address ActionPack head method not respecting explicitly set content-type #3436

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.