mercurial/hgweb/request.py
changeset 5887 41a3fce17625
parent 5886 dd1998dd6f3b
child 5888 956afc025c0f
equal deleted inserted replaced
5886:dd1998dd6f3b 5887:41a3fce17625
    82         if length:
    82         if length:
    83             headers.append(('Content-length', str(length)))
    83             headers.append(('Content-length', str(length)))
    84         self.header(headers)
    84         self.header(headers)
    85 
    85 
    86 def wsgiapplication(app_maker):
    86 def wsgiapplication(app_maker):
       
    87     '''For compatibility with old CGI scripts. A plain hgweb() or hgwebdir()
       
    88     can and should now be used as a WSGI application.'''
    87     application = app_maker()
    89     application = app_maker()
    88     def run_wsgi(env, respond):
    90     def run_wsgi(env, respond):
    89         application(env, respond)
    91         return application(env, respond)
    90     return run_wsgi
    92     return run_wsgi