equal
deleted
inserted
replaced
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 |