def HasResponseHeader(self, key, value):
    response_header = self.response.GetHeader(key)
    if (not response_header):
        return False
    values = [v.strip() for v in response_header.split(',')]
    return any(((v == value) for v in values))
def HasResponseHeader(self, key, value):
    response_header = self.response.GetHeader(key)
    if (not response_header):
        return False
    values = [v.strip() for v in response_header.split(',')]
    return any(((v == value) for v in values))