Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
apache_mod_wsgi [2017/06/28 10:17]
steve
apache_mod_wsgi [2017/06/28 10:18]
steve [Apache 2.4]
Line 33: Line 33:
 def application(environ,​ start_response):​ def application(environ,​ start_response):​
  status = '200 OK'  status = '200 OK'
- output = b'o hai'+ output = b'Hello, world!'
  response_headers = [('​Content-type',​ '​text-plain'​),​ ('​Content-Length',​ str(len(output)))]  response_headers = [('​Content-type',​ '​text-plain'​),​ ('​Content-Length',​ str(len(output)))]
  start_response(status,​ response_headers)  start_response(status,​ response_headers)