saft

Results 7 comments of saft

The following library does it quite explicitly. I'm not sure how stable it is but it is referenced in the aiohttp documentation. https://github.com/aio-libs/aiohttp-session/blob/master/aiohttp_session/__init__.py#L219

Maybe this line helps to illustrate where aiohttp_session puts json into the cookie: https://github.com/aio-libs/aiohttp-session/blob/master/aiohttp_session/__init__.py#L245 aiohttp_session uses aiohttp which uses http/cookies.py. The server is my own. To look at it from...

From #1440 I can't figure out what the *end* intent of it was. Perhaps to be out-of-the-box compatible with Django? Certainly now set_cookie actually keeps the enclosing quote marks. On...

Are you saying the the intent was to remove parts 2 and 4 of cookie value below if they exist? ``` 1 2 3 4 5 ["][\\"][...][\\"]["] ``` If so...

OK, I think I'm out of place to continue to question (or maybe not in this forum) so please suggest we discontinue the conversation if you think so too. My...

> I think the intent was to change this [\"]...[\"] On second thought I don't agree with this because of: `if hasattr(cookie.value, 'startswith') and cookie.value.startswith('"') and cookie.value.endswith('"'):` > What is...

OK, my apologies. I see that I'm coming across argumentative to you. My intent was purely to educate myself and to help if I could at all. However, I hear...