Fixes typo in retrieving the request method