Adding support for the X-HTTP-Method-Override header

Same change I made to yii