web/request.py
branchstable
changeset 7872 0d0b8b3a015d
parent 7870 1a1e04163cde
child 7879 9aae456abab5
equal deleted inserted replaced
7870:1a1e04163cde 7872:0d0b8b3a015d
   555         """remove a cookie by expiring it"""
   555         """remove a cookie by expiring it"""
   556         if bwcompat is not None:
   556         if bwcompat is not None:
   557             warn('[3.13] remove_cookie now take only a name as argument',
   557             warn('[3.13] remove_cookie now take only a name as argument',
   558                  DeprecationWarning, stacklevel=2)
   558                  DeprecationWarning, stacklevel=2)
   559             name = bwcompat
   559             name = bwcompat
   560         self.set_cookie(key, '', maxage=0, expires=date(1970, 1, 1))
   560         self.set_cookie(name, '', maxage=0, expires=date(1970, 1, 1))
   561 
   561 
   562     def set_content_type(self, content_type, filename=None, encoding=None):
   562     def set_content_type(self, content_type, filename=None, encoding=None):
   563         """set output content type for this request. An optional filename
   563         """set output content type for this request. An optional filename
   564         may be given
   564         may be given
   565         """
   565         """