change http_method to method

change http_method to method. I don't know why you use http_method here. It gave me an exception undefined method, make a google search and found nothing about http_method.