I have a cookie called version=xxx in Headers, but it ignored by flask, using request.cookies.get('version') can't get the cookie.
I check the code then found these:
# _internal.py
_cookie_params = {
b"expires",
b"path",
b"comment",
b"max-age",
b"secure",
b"httponly",
b"version",
}
# Ignore parameters. We have no interest in them.
if key.lower() not in _cookie_params:
yield _cookie_unquote(key), _cookie_unquote(value)
I don't know the comment "We have no interest in them" mean. Is there anyone can explain that for me? I will be appreciate for that.
I have a cookie called
version=xxxin Headers, but it ignored by flask, usingrequest.cookies.get('version')can't get the cookie.I check the code then found these:
I don't know the comment "We have no interest in them" mean. Is there anyone can explain that for me? I will be appreciate for that.