

@assure_container
def change_object_content_type(self, container, obj, new_ctype, guess=False):
    '\n        Copies object to itself, but applies a new content-type. The guess\n        feature requires the container to be CDN-enabled. If not, then the\n        content-type must be supplied. If using guess with a CDN-enabled\n        container, new_ctype can be set to None. Failure during the put will\n        result in an exception.\n        '
    cname = utils.get_name(container)
    oname = utils.get_name(container)
    if (guess and container.cdn_enabled):
        obj_url = ('%s/%s' % (container.cdn_uri, oname))
        new_ctype = mimetypes.guess_type(obj_url)[0]
    return self.copy_object(container, obj, container, content_type=new_ctype)

dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py ContainerManager.change_object_content_type/VarMisuse@40/180 `obj`->`container`