summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-08-25 15:09:02 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-08-25 15:09:02 (GMT)
commitcd0f74b1e09a50acc073aa57c1345968257a9056 (patch)
tree7db89954d7f789c1c57048e300f7ae0c0405e720 /Misc
parentf1fe15982287c5d026e8033b286533e867b51857 (diff)
downloadcpython-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/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 35cba80..848332c 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.