Skip to content

Commit

Permalink
Refs django#6657 -- Corrected HttpResponse.set_cookie()/set_signed_co…
Browse files Browse the repository at this point in the history
…okie() signatures in docs.
  • Loading branch information
danidee10 authored and felixxm committed Dec 12, 2019
1 parent b7d05b2 commit 15c5875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ref/request-response.txt
Expand Up @@ -803,7 +803,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.
Expand Down Expand Up @@ -842,7 +842,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
Expand Down

0 comments on commit 15c5875

Please sign in to comment.