Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed an error in the set cookie documentation

  • Loading branch information...
commit 58806ce1530305390f593cc78b66d77443c6e1b2 1 parent 92d3430
Preston Holmes authored October 17, 2012
8  docs/ref/request-response.txt
@@ -16,7 +16,8 @@ passing the :class:`HttpRequest` as the first argument to the view function.
16 16
 Each view is responsible for returning an :class:`HttpResponse` object.
17 17
 
18 18
 This document explains the APIs for :class:`HttpRequest` and
19  
-:class:`HttpResponse` objects.
  19
+:class:`HttpResponse` objects, which are defined in the :mod:`django.http`
  20
+module.
20 21
 
21 22
 HttpRequest objects
22 23
 ===================
@@ -28,7 +29,8 @@ HttpRequest objects
28 29
 Attributes
29 30
 ----------
30 31
 
31  
-All attributes except ``session`` should be considered read-only.
  32
+All attributes should be considered read-only, unless stated otherwise below.
  33
+``session`` is a notable exception.
32 34
 
33 35
 .. attribute:: HttpRequest.body
34 36
 
@@ -648,7 +650,7 @@ Methods
648 650
     Returns ``True`` or ``False`` based on a case-insensitive check for a
649 651
     header with the given name.
650 652
 
651  
-.. method:: HttpResponse.set_cookie(key, value='', max_age=None, expires=None, path='/', domain=None, secure=None, httponly=True)
  653
+.. method:: HttpResponse.set_cookie(key, value='', max_age=None, expires=None, path='/', domain=None, secure=None, httponly=False)
652 654
 
653 655
     .. versionchanged:: 1.3
654 656
 
3  docs/topics/http/sessions.txt
@@ -516,6 +516,9 @@ consistently by all browsers. However, when it is honored, it can be a
516 516
 useful way to mitigate the risk of client side script accessing the
517 517
 protected cookie data.
518 518
 
  519
+.. versionchanged:: 1.4
  520
+    The default value of the setting was changed from ``False`` to ``True``.
  521
+
519 522
 .. _HTTPOnly: https://www.owasp.org/index.php/HTTPOnly
520 523
 
521 524
 SESSION_COOKIE_NAME

0 notes on commit 58806ce

Please sign in to comment.
Something went wrong with that request. Please try again.