You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cookies from cookie jar are rendered in wrong way into Cookie request header. The HTTP request Cookie header should contain only cookie_name=cookie_value pairs delimited by semicolon (;). Currently whole cookie is rendered as for response Set-Cookie which cause than tested application sees cookies like Expires, Domain, Samesite etc...
Moreover if more than one cookie is in cookie jar, generated header makes whole request malformed as rendered cookies are \r\n separated (which obviously ends request's Cookie header at first occurrence and the rest are rubbish)
Cookies from cookie jar are rendered in wrong way into
Cookie
request header. The HTTP requestCookie
header should contain onlycookie_name=cookie_value
pairs delimited by semicolon (;). Currently whole cookie is rendered as for responseSet-Cookie
which cause than tested application sees cookies likeExpires
,Domain
,Samesite
etc...Moreover if more than one cookie is in cookie jar, generated header makes whole request malformed as rendered cookies are
\r\n
separated (which obviously ends request'sCookie
header at first occurrence and the rest are rubbish)issue is here:
async_asgi_testclient/testing.py
:I will make a PR with a fix soon.
The text was updated successfully, but these errors were encountered: