summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_http_cookies.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22775: Fixed unpickling of http.cookies.SimpleCookie with protocol 2Serhiy Storchaka2014-11-021-1/+14
| | | | and above. Patch by Tim Graham.
* Lax cookie parsing in http.cookies could be a security issue when combinedAntoine Pitrou2014-09-161-0/+9
| | | | | | with non-standard cookie handling in some Web browsers. Reported by Sergey Bobrov.
* #16611: BaseCookie now parses 'secure' and 'httponly' flags.R David Murray2013-08-251-1/+39
| | | | | | | | | | | | | Previously it generated them if they were given a value, but completely ignored them if they were present in the string passed in to be parsed. Now if the flag appears on a cookie, the corresponding Morsel key will reference a True value. Other pre-existing behavior is retained in this maintenance patch: if the source contains something like 'secure=foo', morsel['secure'] will return 'foo'. Since such a value doesn't round trip and never did (and would be a surprising occurrence) a subsequent non-bug-fix patch may change this behavior. Inspired by a patch from Julien Phalip, who reviewed this one.
* Issue #14426: Correct the Date format in Expires attribute of Set-Cookie. ↵Senthil Kumaran2012-05-201-4/+4
|\ | | | | | | Patch by Federico Reghenzani and Müte Invert
| * Issue #14426: Correct the Date format in Expires attribute of Set-Cookie. ↵Senthil Kumaran2012-05-201-4/+4
| | | | | | | | Patch by Federico Reghenzani and Müte Invert
* | Fix Issue2193 - Allow ":" character in Cookie NAME valuesSenthil Kumaran2012-04-221-0/+9
|/
* #9824: encode , and ; in cookie values so that browsers don't split on themR. David Murray2010-12-281-0/+8
| | | | | | | | There is a small chance of backward incompatibility here, but only for non-SimpleCookie applications reading SimpleCookie generated cookies. Even then, any such ap is likely to be handling escaped values already, and it would take a fairly perverse implementation of unescaping to fail to unescape these newly escaped chars, so the risk seems minimal.
* #8826: the "expires" attribute value is a date string with spaces, but ↵Georg Brandl2010-08-011-0/+10
| | | | apparently not all user-agents put it in quotes. Handle that as a special case.
* #3788: more tests for http.cookies, now at 95% coverage. Also bring coding ↵Georg Brandl2010-07-311-17/+98
| | | | style in the module up to PEP 8, where it does not break backwards compatibility.
* Fix the warnings filter usage in test_http_cookies.Brett Cannon2010-03-201-4/+11
|
* Fixing the issue4860. Escaping the embedded '"' in the js_output method of ↵Senthil Kumaran2009-04-021-4/+4
| | | | Morsel class.
* Remove deprecated SmartCookie and SerialCookie classes.Georg Brandl2008-05-281-1/+0
|
* Create http package. #2883.Georg Brandl2008-05-261-0/+82