HF RL Explorer

Task: Properly Add a Cookie to Python Requests Session CookieJar

Task: Properly Add a Cookie to Python Requests Session CookieJar: a task in Terminal-Lego-15k (Harbor dataset). You need to fix a Python script that attempts to add a cookie with specific attributes to a requests.Session cookiejar. The current implementation uses requests.utils.add dict to…

The task

You need to fix a Python script that attempts to add a cookie with specific attributes to a `requests.Session` cookiejar. The current implementation uses `requests.utils.add_dict_to_cookiejar()` incorrectly, which causes cookie data to be munged (keys missing, values missing, or matched to incorrect keys).

Part of PrimeIntellect/Terminal-Lego-15k.