diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2020-09-04 14:04:21 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-09-05 10:07:23 +0200 |
| commit | d2d08c8cf6ed601d52e25cb8fc7944d39b5ed56e (patch) | |
| tree | 07fb5a9ad1ef9415b867ad772b5f196c2339ba5a /docs/ref/request-response.txt | |
| parent | e6b5108acc79dcff5bc90bc97500569c74a807bc (diff) | |
Fixed #31982 -- Made HttpResponse.set_cookie() cast max_age argument to an integer.
Diffstat (limited to 'docs/ref/request-response.txt')
| -rw-r--r-- | docs/ref/request-response.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index 0256713822..6b3ec54dd5 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -834,8 +834,8 @@ Methods Sets a cookie. The parameters are the same as in the :class:`~http.cookies.Morsel` cookie object in the Python standard library. - * ``max_age`` should be a number of seconds, or ``None`` (default) if - the cookie should last only as long as the client's browser session. + * ``max_age`` should be an integer number of seconds, or ``None`` (default) + if the cookie should last only as long as the client's browser session. If ``expires`` is not specified, it will be calculated. * ``expires`` should either be a string in the format ``"Wdy, DD-Mon-YY HH:MM:SS GMT"`` or a ``datetime.datetime`` object |
