diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-08-25 15:09:02 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-08-25 15:09:02 (GMT) |
commit | cd0f74b1e09a50acc073aa57c1345968257a9056 (patch) | |
tree | 7db89954d7f789c1c57048e300f7ae0c0405e720 /Misc | |
parent | f1fe15982287c5d026e8033b286533e867b51857 (diff) | |
download | cpython-cd0f74b1e09a50acc073aa57c1345968257a9056.zip cpython-cd0f74b1e09a50acc073aa57c1345968257a9056.tar.gz cpython-cd0f74b1e09a50acc073aa57c1345968257a9056.tar.bz2 |
#16611: BaseCookie now parses 'secure' and 'httponly' flags.
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -66,6 +66,9 @@ Core and Builtins Library ------- +- Issue #16611: http.cookie now correctly parses the 'secure' and 'httponly' + cookie flags. + - Issue #11973: Fix a problem in kevent. The flags and fflags fields are now properly handled as unsigned. |