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
def headers(session): user_headers = SecureUtil.basehaders() user_headers['Cookie'] = "; PQDMSESSID=" + session return user_headers
def headers(): user_headers = SecureUtil.basehaders() if isinstance(user_headers.get('Cookie'), type(None)) == False: del user_headers['Cookie'] return user_headers