

def get_cookie(self, name):
    cookies = self.headers.get('Cookie')
    if cookies:
        authcookie = Cookie.BaseCookie(cookies).get(name)
        if authcookie:
            return authcookie.value
        else:
            return None
    else:
        return None

dataset/ETHPy150Open nginxinc/nginx-ldap-auth/nginx-ldap-auth-daemon.py AuthHandler.get_cookie/original