Fix typo in retrieving the request method