def convert_to_resource(self, headers, raw_response, params):
        if headers not in 'content-type':
            raise OEmbedException('Missing mime-type in response')
        
        content_type = headers['content-type'].split(';')[0]
        
        if content_type in ('text/javascript', 'application/json'):
            try:
                json_response = simplejson.loads(raw_response)
                resource = OEmbedResource.create(json_response)
            except ValueError:
                raise OEmbedException('Unable to parse response json')
        else:
            raise OEmbedException('Invalid mime-type - %s' % headers['content-type'])
        return resource
dataset/ETHPy150Open worldcompany/djangoembed/oembed/providers.py/HTTPProvider.convert_to_resource/swapped operands of `not in`