Map HEAD requests to GET routes instead of duplicating GET routes.

Follow up to rails#15321 (comment)
Since we are checking for the request method now, we have to specify `REQUEST_METHOD` in the environment.