

def _check_close(self):
    conn = self.headers.get('connection')
    if (self.version == 11):
        conn = self.headers.get('connection')
        if (conn and ('close' in conn.lower())):
            return True
        return False
    if self.headers.get('keep-alive'):
        return False
    if (conn and ('keep-alive' in conn.lower())):
        return False
    pconn = self.headers.get('proxy-connection')
    if (pconn and ('keep-alive' in pconn.lower())):
        return False
    return True

dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/backports/http/client.py HTTPResponse._check_close/original