-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Wrong cookies format when sending request #2571
Copy link
Copy link
Closed
Description
While sending cookie with special symbols or spaces, aiohttp adds unnecessary quotes around cookie value.
This only occurs when cookies are added to session manually. ClientSession(cookies={..}) or when updating existing session.
- Example what cookie should look like:
User-Agent: User-Agent
Accept: */*
Accept-Encoding: gzip, deflate
Host: httpbin.org
Cookie: cookie_name=cookie_value
- Example when unnecessary quotes are added:
User-Agent: User-Agent
Accept: */*
Accept-Encoding: gzip, deflate
Host: httpbin.org
Cookie: cookie_name="cookie_ value"
This creates problem for server side to read cookies correctly.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels