handle trailing slash in HTTPManager