Exemple #1
0
 def _get_cookies(self):
     try:
         return self._cookies
     except AttributeError:
         self._cookies = cookies = {}
         for cookie in httputils.parse_cookie(self.environ.get(b'HTTP_COOKIE', b'')):
             cookies[cookie.name] = cookie.value
         return cookies
Exemple #2
0
 def _get_cookies(self):
     try:
         return self._cookies
     except AttributeError:
         self._cookies = httputils.parse_cookie(self.environ.get('HTTP_COOKIE', ''))
         return self._cookies