Fixed http method checking