diff options
| author | Osaetin Daniel <osaetindaniel@gmail.com> | 2019-12-11 10:42:58 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-12-13 11:06:33 +0100 |
| commit | 3ab7de018277a5202101713cc4a962f1b409b956 (patch) | |
| tree | 7a1209877b6cbf87a6055942edd763da8d546a96 /docs/ref | |
| parent | 6cb30414bc0f83b49afc4cae76d4af5656effe9a (diff) | |
[3.0.x] Refs #6657 -- Corrected HttpResponse.set_cookie()/set_signed_cookie() signatures in docs.
Backport of 15c5875e693cc972c996a921560624c355ab8fdd from master
Diffstat (limited to 'docs/ref')
| -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 5703147ec6..18431d8be0 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -805,7 +805,7 @@ Methods Sets a header unless it has already been set. -.. method:: HttpResponse.set_cookie(key, value='', max_age=None, expires=None, path='/', domain=None, secure=None, httponly=False, samesite=None) +.. method:: HttpResponse.set_cookie(key, value='', max_age=None, expires=None, path='/', domain=None, secure=False, httponly=False, samesite=None) Sets a cookie. The parameters are the same as in the :class:`~http.cookies.Morsel` cookie object in the Python standard library. @@ -844,7 +844,7 @@ Methods attempt to store a cookie of more than 4096 bytes, but many browsers will not set the cookie correctly. -.. method:: HttpResponse.set_signed_cookie(key, value, salt='', max_age=None, expires=None, path='/', domain=None, secure=None, httponly=False, samesite=None) +.. method:: HttpResponse.set_signed_cookie(key, value, salt='', max_age=None, expires=None, path='/', domain=None, secure=False, httponly=False, samesite=None) Like :meth:`~HttpResponse.set_cookie()`, but :doc:`cryptographic signing </topics/signing>` the cookie before setting |
