Commits

zuroc committed 6755953 Draft

fix

Comments (0)

Files changed (1)

         morsel[k] = v
 
 
-    #name = utf8(name)
-    #value = utf8(value)
-    #if re.search(r"[\x00-\x20]", name + value):
-    #    # Don't let us accidentally inject bad stuff
-    #    raise ValueError('Invalid cookie %r: %r' % (name, value))
-    #if not hasattr(self, '_new_cookie'):
-    #    self._new_cookie = []
-    #new_cookie = Cookie.BaseCookie()
-    #self._new_cookie.append(new_cookie)
-    #new_cookie[name] = value
-    #if domain:
-    #    new_cookie[name]['domain'] = domain
-
-    #if expires_days is not None and not expires:
-    #    expires = datetime.datetime.utcnow() + datetime.timedelta(
-    #        days=expires_days)
-    #if expires:
-    #    if type(expires) is not str:
-    #        timestamp = calendar.timegm(expires.utctimetuple())
-    #        expires = email.utils.formatdate(
-    #            timestamp, localtime=False, usegmt=True
-    #        )
-    #    new_cookie[name]['expires'] = expires
-    #else:
-    #    new_cookie[name]['expires'] = 'Tue, 01 Jan 2030 00:00:00 GMT'
-
-    #if path:
-    #    new_cookie[name]['path'] = path
-    #for k, v in kwargs.iteritems():
-    #    new_cookie[name][k] = v
 
 web.RequestHandler.set_cookie = set_cookie