revert requests dependency
handle url with no trailing path