Changes between Version 16 and Version 17 of EggCookingTutorialTrac0.11


Ignore:
Timestamp:
Nov 7, 2011, 11:46:09 PM (3 years ago)
Author:
cpowell@…
Comment:

Complained about header length.

Legend:

Unmodified
Added
Removed
Modified
  • EggCookingTutorialTrac0.11

    v16 v17  
    5858   
    5959    def process_request(self, req):
     60        content = 'Hello World'
    6061        req.send_response(200)
    6162        req.send_header('Content-Type', 'text/plain')
     63        req.send_header('Content-Length', len('content')
    6264        req.end_headers()
    63         req.write('Hello world!')
     65        req.write(content)
    6466}}}
    6567