Set the right header for rails