Lynn Rees  committed 2281d17


  • Participants
  • Parent commits cb0b148
  • Branches wsgiauth

Comments (0)

Files changed (1)

File trunk/wsgiauth/

             scookie[]['domain'] = self.domain
         if self.comment is not None:
             scookie[]['comment'] = self.comment
+        # Mark cookie as secure if using SSL
         if environ['wsgi.url_scheme'] == 'https':
             scookie[]['secure'] = ''
         return scookie[].OutputString()
     def initial(self, environ, start_response):
-        # Coroutine to set authentication cookie
+        '''Initial response to a request.'''
         def cookie_response(status, headers, exc_info=None):
             headers.append(('Set-Cookie', self.generate(environ)))
             return start_response(status, headers, exc_info)