[req cookie] fix name error stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 27 Sep 2011 08:17:56 +0200
branchstable
changeset 7872 0d0b8b3a015d
parent 7870 1a1e04163cde
child 7873 975d6f51cfab
[req cookie] fix name error
web/request.py
--- a/web/request.py	Mon Sep 26 19:45:51 2011 +0200
+++ b/web/request.py	Tue Sep 27 08:17:56 2011 +0200
@@ -557,7 +557,7 @@
             warn('[3.13] remove_cookie now take only a name as argument',
                  DeprecationWarning, stacklevel=2)
             name = bwcompat
-        self.set_cookie(key, '', maxage=0, expires=date(1970, 1, 1))
+        self.set_cookie(name, '', maxage=0, expires=date(1970, 1, 1))
 
     def set_content_type(self, content_type, filename=None, encoding=None):
         """set output content type for this request. An optional filename