Fixing invalid method checking endpoint URLs.