SilentGhost added the comment: On python2 you should be able to use Cookie module to parse cookies, rather than doing that manually. Commas are handled correctly there. On python3 the same functionality can be found in http.cookies. The SimpleCookie.load could be used directly to have the header parsed.
I cannot say much about requests's choices or decisions, but if you think their behaviour is not correct I can only point you to their bug tracker. All the behaviour of the stdlib modules seem correct to me, so I'm going to close this issue. ---------- resolution: -> not a bug stage: test needed -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28378> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com