Avoid error on _method=put&_method=put

Or else it crashes with
`TypeError: Object put,put has no method 'toLowerCase'`