Example #1
0
def headers(session):
    user_headers = SecureUtil.basehaders()
    user_headers['Cookie'] = "; PQDMSESSID=" + session

    if len(SecureUtil.cookie_awselb_value):
        user_headers['Cookie'] += "; " + SecureUtil.cookie_awselb_key + "=" + \
            SecureUtil.cookie_awselb_value

    return user_headers
Example #2
0
def headers(session):
    user_headers = SecureUtil.basehaders()
    user_headers['Cookie'] = "; PQDMSESSID=" + session
    return user_headers
Example #3
0
def headers():
    user_headers = SecureUtil.basehaders()
    if isinstance(user_headers.get('Cookie'), type(None)) == False:
        del user_headers['Cookie']

    return user_headers