def Headers(headers, content):
    if 'set-cookie' in headers.keys() or 'cookie' in headers.keys():
        cookies().__run__(headers['set-cookie'] or headers['cookie'])
    header().__run__(headers)
Exemplo n.º 2
0
def checkHeaders(headers, content):
    if 'cookie' in headers.keys():
        if headers['cookie']: cookies().__run__(headers['cookie'])
    elif 'set-cookie' in headers.keys():
        if headers['set-cookie']: cookies().__run__(headers['set-cookie'])
    header()._run_(headers)