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 cookie documentation

  • Loading branch information...
commit 31dcaf49a0ed6bda13a6d556412b6993a9bd41ba 1 parent 9305c0e
Preston Holmes authored October 17, 2012
6  docs/ref/request-response.txt
@@ -651,11 +651,7 @@ Methods
651 651
     Returns ``True`` or ``False`` based on a case-insensitive check for a
652 652
     header with the given name.
653 653
 
654  
-.. method:: HttpResponse.set_cookie(key, value='', max_age=None, expires=None, path='/', domain=None, secure=None, httponly=True)
655  
-
656  
-    .. versionchanged:: 1.4
657  
-
658  
-    The default value for httponly was changed from ``False`` to ``True``.
  654
+.. method:: HttpResponse.set_cookie(key, value='', max_age=None, expires=None, path='/', domain=None, secure=None, httponly=False)
659 655
 
660 656
     Sets a cookie. The parameters are the same as in the :class:`Cookie.Morsel`
661 657
     object in the Python standard library.
3  docs/topics/http/sessions.txt
@@ -524,6 +524,9 @@ consistently by all browsers. However, when it is honored, it can be a
524 524
 useful way to mitigate the risk of client side script accessing the
525 525
 protected cookie data.
526 526
 
  527
+.. versionchanged:: 1.4
  528
+    The default value of the setting was changed from ``False`` to ``True``.
  529
+
527 530
 .. _HTTPOnly: https://www.owasp.org/index.php/HTTPOnly
528 531
 
529 532
 SESSION_COOKIE_NAME

0 notes on commit 31dcaf4

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