summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-08-25 11:09:02 -0400
committerR David Murray <rdmurray@bitdance.com>2013-08-25 11:09:02 -0400
commite0184dda7345800df932d01972e42f8ffb81843f (patch)
tree6925254494c8551ecdfac78b5e022303186cdd26 /Python/pythonrun.c
parentb857cf015ce08a550133631f3b1ec4f6c90e6fc1 (diff)
downloadcpython-e0184dda7345800df932d01972e42f8ffb81843f.tar.gz
#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 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions