Updating logic for determining HTTP method