Comment 6 for bug 1385581

Revision history for this message
huangtianhua (huangtianhua) wrote :

I think after commit I90bc9d9fcd1058c3eca288f08dd134810f1b0000 merged, this problem is fixed:
we override the method strip_endpoint() for SessionClient:

def strip_endpoint(self, location):
        if location is None:
            message = _("Location not returned with 302")
            raise exc.InvalidEndpoint(message=message)
        if (self.endpoint_override is not None and
                location.lower().startswith(self.endpoint_override.lower())):
                return location[len(self.endpoint_override):]
        else:
            return location