Checking endpoint for trailing slash for local uri, fixed typo.